constants.py: Simnet inherits from Testnet

This commit is contained in:
SomberNight 2018-04-18 15:38:44 +02:00
parent 4516a27e37
commit 3f945f2467
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -101,31 +101,16 @@ class BitcoinTestnet(AbstractNet):
}
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):