1
0

follow-up testnet4 stuff: trivial clean-up

re https://github.com/spesmilo/electrum/pull/9197

localhost in servers list should only be for regtest-like networks
This commit is contained in:
SomberNight
2024-09-16 15:11:03 +00:00
parent 714e5cd84b
commit 778aea340e
3 changed files with 1 additions and 9 deletions

View File

@@ -158,8 +158,6 @@ class BitcoinTestnet(AbstractNet):
class BitcoinTestnet4(BitcoinTestnet):
NET_NAME = "testnet4"
SEGWIT_HRP = "tb"
BOLT11_HRP = SEGWIT_HRP
GENESIS = "00000000da84f2bafbbc53dee25a72ae507ff4914b867c565be350b0da8bf043"
DEFAULT_SERVERS = read_json('servers_testnet4.json', {})
CHECKPOINTS = read_json('checkpoints_testnet4.json', [])

View File

@@ -1,10 +1,4 @@
{
"127.0.0.1": {
"pruning": "-",
"s": "51002",
"t": "51001",
"version": "1.4"
},
"testnet4-electrumx.wakiyamap.dev": {
"pruning": "-",
"s": "51002",

View File

@@ -254,7 +254,7 @@ class SimpleConfig(Logger):
if self.get('testnet'):
path = os.path.join(path, 'testnet')
make_dir(path, allow_symlink=False)
if self.get('testnet4'):
elif self.get('testnet4'):
path = os.path.join(path, 'testnet4')
make_dir(path, allow_symlink=False)
elif self.get('regtest'):