bitcoin.NetworkConstants: easier changing between testnet and mainnet
This commit is contained in:
@@ -476,7 +476,7 @@ testnet_block_explorers = {
|
||||
|
||||
def block_explorer_info():
|
||||
from . import bitcoin
|
||||
return testnet_block_explorers if bitcoin.TESTNET else mainnet_block_explorers
|
||||
return testnet_block_explorers if bitcoin.NetworkConstants.TESTNET else mainnet_block_explorers
|
||||
|
||||
def block_explorer(config):
|
||||
return config.get('block_explorer', 'Blocktrail.com')
|
||||
|
||||
Reference in New Issue
Block a user