electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit f174609158ab1bd139cd40a15794f10d3cae30f0
parent 8468fc8f68f85c2adbacd2d1b17899b1f1673c22
Author: SomberNight <somber.night@protonmail.com>
Date:   Wed, 18 Apr 2018 15:38:44 +0200

constants.py: Simnet inherits from Testnet

Diffstat:
Melectrum/constants.py | 21+++------------------
1 file changed, 3 insertions(+), 18 deletions(-)

diff --git a/electrum/constants.py b/electrum/constants.py @@ -111,31 +111,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):