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:
@@ -158,8 +158,6 @@ class BitcoinTestnet(AbstractNet):
|
|||||||
class BitcoinTestnet4(BitcoinTestnet):
|
class BitcoinTestnet4(BitcoinTestnet):
|
||||||
|
|
||||||
NET_NAME = "testnet4"
|
NET_NAME = "testnet4"
|
||||||
SEGWIT_HRP = "tb"
|
|
||||||
BOLT11_HRP = SEGWIT_HRP
|
|
||||||
GENESIS = "00000000da84f2bafbbc53dee25a72ae507ff4914b867c565be350b0da8bf043"
|
GENESIS = "00000000da84f2bafbbc53dee25a72ae507ff4914b867c565be350b0da8bf043"
|
||||||
DEFAULT_SERVERS = read_json('servers_testnet4.json', {})
|
DEFAULT_SERVERS = read_json('servers_testnet4.json', {})
|
||||||
CHECKPOINTS = read_json('checkpoints_testnet4.json', [])
|
CHECKPOINTS = read_json('checkpoints_testnet4.json', [])
|
||||||
|
|||||||
@@ -1,10 +1,4 @@
|
|||||||
{
|
{
|
||||||
"127.0.0.1": {
|
|
||||||
"pruning": "-",
|
|
||||||
"s": "51002",
|
|
||||||
"t": "51001",
|
|
||||||
"version": "1.4"
|
|
||||||
},
|
|
||||||
"testnet4-electrumx.wakiyamap.dev": {
|
"testnet4-electrumx.wakiyamap.dev": {
|
||||||
"pruning": "-",
|
"pruning": "-",
|
||||||
"s": "51002",
|
"s": "51002",
|
||||||
|
|||||||
@@ -254,7 +254,7 @@ class SimpleConfig(Logger):
|
|||||||
if self.get('testnet'):
|
if self.get('testnet'):
|
||||||
path = os.path.join(path, 'testnet')
|
path = os.path.join(path, 'testnet')
|
||||||
make_dir(path, allow_symlink=False)
|
make_dir(path, allow_symlink=False)
|
||||||
if self.get('testnet4'):
|
elif self.get('testnet4'):
|
||||||
path = os.path.join(path, 'testnet4')
|
path = os.path.join(path, 'testnet4')
|
||||||
make_dir(path, allow_symlink=False)
|
make_dir(path, allow_symlink=False)
|
||||||
elif self.get('regtest'):
|
elif self.get('regtest'):
|
||||||
|
|||||||
Reference in New Issue
Block a user