1
0

Add suport testnet4

This commit is contained in:
wakiyamap
2024-09-14 01:47:49 +09:00
parent 6b4ba1f757
commit 1d9ff40d0b
8 changed files with 142 additions and 0 deletions

View File

@@ -987,6 +987,11 @@ testnet_block_explorers = {
{'tx': 'tx/', 'addr': 'address/'}),
}
testnet4_block_explorers = {
'mempool.space': ('https://mempool.space/testnet4/',
{'tx': 'tx/', 'addr': 'address/'}),
}
signet_block_explorers = {
'bc-2.jp': ('https://explorer.bc-2.jp/',
{'tx': 'tx/', 'addr': 'address/'}),
@@ -1009,6 +1014,8 @@ def block_explorer_info():
from . import constants
if constants.net.NET_NAME == "testnet":
return testnet_block_explorers
elif constants.net.NET_NAME == "testnet4":
return testnet4_block_explorers
elif constants.net.NET_NAME == "signet":
return signet_block_explorers
return mainnet_block_explorers