Changed explorers to 3 known zcl full nodes
This commit is contained in:
parent
9047d4a3e2
commit
690edbc6bc
29
lib/util.py
29
lib/util.py
|
@ -427,36 +427,19 @@ def time_difference(distance_in_time, include_seconds):
|
|||
return "over %d years" % (round(distance_in_minutes / 525600))
|
||||
|
||||
mainnet_block_explorers = {
|
||||
'Biteasy.com': ('https://www.biteasy.com/blockchain',
|
||||
{'tx': 'transactions', 'addr': 'addresses'}),
|
||||
'Bitflyer.jp': ('https://chainflyer.bitflyer.jp',
|
||||
{'tx': 'Transaction', 'addr': 'Address'}),
|
||||
'Blockchain.info': ('https://blockchain.info',
|
||||
'ZCLMine.pro': ('http://explorer.zclmine.pro/insight-api-zcash',
|
||||
{'tx': 'tx', 'addr': 'address'}),
|
||||
'blockchainbdgpzk.onion': ('https://blockchainbdgpzk.onion',
|
||||
'ZclassicExplorer.com': ('http://149.56.129.104/insight-api-zcash',
|
||||
{'tx': 'tx', 'addr': 'address'}),
|
||||
'Blockr.io': ('https://btc.blockr.io',
|
||||
{'tx': 'tx/info', 'addr': 'address/info'}),
|
||||
'Blocktrail.com': ('https://www.blocktrail.com/BTC',
|
||||
'BlockCypher.com': ('http://zcl-explorer.com/insight-api-zcash',
|
||||
{'tx': 'tx', 'addr': 'address'}),
|
||||
'BTC.com': ('https://chain.btc.com',
|
||||
{'tx': 'tx', 'addr': 'address'}),
|
||||
'Chain.so': ('https://www.chain.so',
|
||||
{'tx': 'tx/BTC', 'addr': 'address/BTC'}),
|
||||
'Insight.is': ('https://insight.bitpay.com',
|
||||
{'tx': 'tx', 'addr': 'address'}),
|
||||
'TradeBlock.com': ('https://tradeblock.com/blockchain',
|
||||
{'tx': 'tx', 'addr': 'address'}),
|
||||
'BlockCypher.com': ('https://live.blockcypher.com/btc',
|
||||
{'tx': 'tx', 'addr': 'address'}),
|
||||
'Blockchair.com': ('https://blockchair.com/bitcoin',
|
||||
{'tx': 'transaction', 'addr': 'address'}),
|
||||
'system default': ('blockchain:',
|
||||
{'tx': 'tx', 'addr': 'address'}),
|
||||
}
|
||||
|
||||
# TODO zcl testnet block explorer
|
||||
testnet_block_explorers = {
|
||||
'Blocktrail.com': ('https://www.blocktrail.com/tBTC',
|
||||
#'Blocktrail.com': ('https://www.blocktrail.com/tBTC',
|
||||
{'tx': 'tx', 'addr': 'address'}),
|
||||
'system default': ('blockchain:',
|
||||
{'tx': 'tx', 'addr': 'address'}),
|
||||
|
@ -467,7 +450,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', 'Blocktrail.com')
|
||||
return config.get('block_explorer', 'ZclassicExplorer.com')
|
||||
|
||||
def block_explorer_tuple(config):
|
||||
return block_explorer_info().get(block_explorer(config))
|
||||
|
|
Loading…
Reference in New Issue