Merge pull request #85 from interbiznw/master
Update Block Explorers in util.py
This commit is contained in:
commit
7853c8741d
22
lib/util.py
22
lib/util.py
|
@ -432,16 +432,28 @@ def time_difference(distance_in_time, include_seconds):
|
|||
|
||||
# For raw json, append /insight-api-zcash
|
||||
mainnet_block_explorers = {
|
||||
'ZclassicExplorer.com': ('http://zclassicexplorer.com',
|
||||
'Zcl-explorer.com': ('http://zcl-explorer.com/insight/',
|
||||
{'tx': 'tx', 'addr': 'address'}),
|
||||
'ZCLMine.pro': ('http://explorer.zclmine.pro',
|
||||
'zclzclzcl.com': ('http://zclzclzcl.com',
|
||||
{'tx': 'tx', 'addr': 'address'}),
|
||||
'MyZCL.com': ('http://myzcl.com',
|
||||
'Zcl-explorer.com - Alternate 1': ('http://as1.zcl-explorer.com/',
|
||||
{'tx': 'tx', 'addr': 'address'}),
|
||||
'system default': ('blockchain:',
|
||||
'Zcl-explorer.com - Alternate 2': ('http://eu1.zcl-explorer.com/',
|
||||
{'tx': 'tx', 'addr': 'address'}),
|
||||
'explorer.zclassic.org': ('http://explorer.zclassic.org/insight/',
|
||||
{'tx': 'tx', 'addr': 'address'}),
|
||||
'explorer1.zclassic.org': ('http://explorer1.zclassic.org/insight/',
|
||||
{'tx': 'tx', 'addr': 'address'})
|
||||
|
||||
}
|
||||
|
||||
#http://zcl-explorer.com/insight/
|
||||
#http://zclzclzcl.com
|
||||
#http://eu1.zcl-explorer.com
|
||||
#http://as1.zcl-explorer.com
|
||||
#http://explorer.zclassic.org/insight/
|
||||
#http://explorer1.zclassic.org/insight/
|
||||
|
||||
# TODO zcl testnet block explorer
|
||||
testnet_block_explorers = {
|
||||
#'Blocktrail.com': ('https://www.blocktrail.com/tBTC',
|
||||
|
@ -455,7 +467,7 @@ def block_explorer_info():
|
|||
return testnet_block_explorers if bitcoin.NetworkConstants.TESTNET else mainnet_block_explorers
|
||||
|
||||
def block_explorer(config):
|
||||
return config.get('block_explorer', 'ZclassicExplorer.com')
|
||||
return config.get('block_explorer', 'Zcl-explorer.com')
|
||||
|
||||
def block_explorer_tuple(config):
|
||||
return block_explorer_info().get(block_explorer(config))
|
||||
|
|
Loading…
Reference in New Issue