Update util.py

Updated block explorers. We have http://eu1.zcl-explorer.com/insight    http://as1.zcl-explorer.com/insight  and http://zcl-explorer.com/insight/
This commit is contained in:
J62 2018-02-08 19:28:11 -08:00 committed by GitHub
parent a2909b3c7b
commit e3a6337035
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -432,11 +432,11 @@ 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',
'ZclassicExplorer.com': ('http://ZclassicExplorer.com',
{'tx': 'tx', 'addr': 'address'}),
'MyZCL.com': ('http://myzcl.com',
'EU Zcl-explorer.com': ('http://eu1.zcl-explorer.com/insight/',
{'tx': 'tx', 'addr': 'address'}),
'system default': ('blockchain:',
{'tx': 'tx', 'addr': 'address'})
@ -455,7 +455,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))