use blockstream.info as default block explorer

This commit is contained in:
ThomasV 2018-11-07 12:38:29 +01:00
parent 6d5b28a9c5
commit 39fb5b8f58

View File

@ -674,7 +674,7 @@ def block_explorer_info():
def block_explorer(config: 'SimpleConfig') -> str:
from . import constants
default_ = 'Blockchair.com' if not constants.net.TESTNET else 'smartbit.com.au'
default_ = 'Blockstream.info'
be_key = config.get('block_explorer', default_)
be = block_explorer_info().get(be_key)
return be_key if be is not None else default_