diff --git a/electrum/constants.py b/electrum/constants.py index f0e2faaf6..efb466a74 100644 --- a/electrum/constants.py +++ b/electrum/constants.py @@ -107,31 +107,16 @@ class BitcoinTestnet(AbstractNet): XPUB_HEADERS_INV = inv_dict(XPUB_HEADERS) BIP44_COIN_TYPE = 1 -class BitcoinSimnet: + +class BitcoinSimnet(BitcoinTestnet): ADDRTYPE_P2PKH = 0x3f ADDRTYPE_P2SH = 0x7b SEGWIT_HRP = "sb" GENESIS = "683e86bd5c6d110d91b94b97137ba6bfe02dbbdb8e3dff722a669b5d69d77af6" WIF_PREFIX = 0x00 - TESTNET = True - DEFAULT_PORTS = {} - DEFAULT_SERVERS = read_json('servers_regtest.json', {}) # Note: regtest! + DEFAULT_SERVERS = read_json('servers_regtest.json', {}) # Note: regtest! CHECKPOINTS = [] - XPRV_HEADERS = { - 'standard': 0x04358394, # tprv - 'p2wpkh-p2sh': 0x044a4e28, # uprv - 'p2wsh-p2sh': 0x024285b5, # Uprv - 'p2wpkh': 0x045f18bc, # vprv - 'p2wsh': 0x02575048, # Vprv - } - XPUB_HEADERS = { - 'standard': 0x043587cf, # tpub - 'p2wpkh-p2sh': 0x044a5262, # upub - 'p2wsh-p2sh': 0x024285ef, # Upub - 'p2wpkh': 0x045f1cf6, # vpub - 'p2wsh': 0x02575483, # Vpub - } class BitcoinRegtest(BitcoinTestnet):