Skip to content

Commit

Permalink
Replace Bitcoin explorers with Namecoin explorers.
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyRand committed May 19, 2018
1 parent 1b6f7a3 commit 52b3522
Showing 1 changed file with 5 additions and 27 deletions.
32 changes: 5 additions & 27 deletions lib/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,39 +552,17 @@ 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/',
'Namecha.in (non-libre; wiretapped by CloudFlare; discriminates against Tor)': ('https://namecha.in/',
{'tx': 'tx/', 'addr': 'address/'}),
'blockchainbdgpzk.onion': ('https://blockchainbdgpzk.onion/',
'Bchain.info (non-libre; no name support)': ('https://bchain.info/NMC/',
{'tx': 'tx/', 'addr': 'addr/'}),
'BitInfoCharts.com (non-libre; wiretapped by CloudFlare; discriminates against Tor; no name support)': ('https://bitinfocharts.com/namecoin/',
{'tx': 'tx/', 'addr': 'address/'}),
'Blockr.io': ('https://btc.blockr.io/',
{'tx': 'tx/info/', 'addr': 'address/info/'}),
'Blocktrail.com': ('https://www.blocktrail.com/BTC/',
{'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/'}),
'blockonomics.co': ('https://www.blockonomics.co/',
{'tx': 'api/tx?txid=', 'addr': '#/search?q='}),
'system default': ('blockchain:/',
{'tx': 'tx/', 'addr': 'address/'}),
}

testnet_block_explorers = {
'Blocktrail.com': ('https://www.blocktrail.com/tBTC/',
{'tx': 'tx/', 'addr': 'address/'}),
'system default': ('blockchain://000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943/',
{'tx': 'tx/', 'addr': 'address/'}),
}
Expand All @@ -594,7 +572,7 @@ def block_explorer_info():
return testnet_block_explorers if constants.net.TESTNET else mainnet_block_explorers

def block_explorer(config):
return config.get('block_explorer', 'Blocktrail.com')
return config.get('block_explorer', 'Bchain.info (non-libre; no name support)')

def block_explorer_tuple(config):
return block_explorer_info().get(block_explorer(config))
Expand Down

0 comments on commit 52b3522

Please sign in to comment.