mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-01 01:35:20 +00:00
constants.py: Simnet inherits from Testnet
This commit is contained in:
parent
8468fc8f68
commit
f174609158
1 changed files with 3 additions and 18 deletions
|
@ -111,31 +111,16 @@ class BitcoinTestnet(AbstractNet):
|
||||||
XPUB_HEADERS_INV = inv_dict(XPUB_HEADERS)
|
XPUB_HEADERS_INV = inv_dict(XPUB_HEADERS)
|
||||||
BIP44_COIN_TYPE = 1
|
BIP44_COIN_TYPE = 1
|
||||||
|
|
||||||
class BitcoinSimnet:
|
|
||||||
|
class BitcoinSimnet(BitcoinTestnet):
|
||||||
ADDRTYPE_P2PKH = 0x3f
|
ADDRTYPE_P2PKH = 0x3f
|
||||||
ADDRTYPE_P2SH = 0x7b
|
ADDRTYPE_P2SH = 0x7b
|
||||||
SEGWIT_HRP = "sb"
|
SEGWIT_HRP = "sb"
|
||||||
GENESIS = "683e86bd5c6d110d91b94b97137ba6bfe02dbbdb8e3dff722a669b5d69d77af6"
|
GENESIS = "683e86bd5c6d110d91b94b97137ba6bfe02dbbdb8e3dff722a669b5d69d77af6"
|
||||||
WIF_PREFIX = 0x00
|
WIF_PREFIX = 0x00
|
||||||
TESTNET = True
|
DEFAULT_SERVERS = read_json('servers_regtest.json', {}) # Note: regtest!
|
||||||
DEFAULT_PORTS = {}
|
|
||||||
DEFAULT_SERVERS = read_json('servers_regtest.json', {}) # Note: regtest!
|
|
||||||
CHECKPOINTS = []
|
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):
|
class BitcoinRegtest(BitcoinTestnet):
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue