Browse Source

[decred] Update to testnet3 (#597)

While here, fix mainnet and testnet WIF_BYTE.
patch-2
David Hill 7 years ago
committed by Neil
parent
commit
f3166176ce
  1. 6
      electrumx/lib/coins.py

6
electrumx/lib/coins.py

@ -1645,7 +1645,7 @@ class Decred(Coin):
XPRV_VERBYTES = bytes.fromhex("02fda4e8") XPRV_VERBYTES = bytes.fromhex("02fda4e8")
P2PKH_VERBYTE = bytes.fromhex("073f") P2PKH_VERBYTE = bytes.fromhex("073f")
P2SH_VERBYTES = [bytes.fromhex("071a")] P2SH_VERBYTES = [bytes.fromhex("071a")]
WIF_BYTE = bytes.fromhex("230e") WIF_BYTE = bytes.fromhex("22de")
GENESIS_HASH = ('298e5cc3d985bfe7f81dc135f360abe0' GENESIS_HASH = ('298e5cc3d985bfe7f81dc135f360abe0'
'89edd4396b86d2de66b0cef42b21d980') '89edd4396b86d2de66b0cef42b21d980')
BASIC_HEADER_SIZE = 180 BASIC_HEADER_SIZE = 180
@ -1699,9 +1699,9 @@ class DecredTestnet(Decred):
XPRV_VERBYTES = bytes.fromhex("04358397") XPRV_VERBYTES = bytes.fromhex("04358397")
P2PKH_VERBYTE = bytes.fromhex("0f21") P2PKH_VERBYTE = bytes.fromhex("0f21")
P2SH_VERBYTES = [bytes.fromhex("0efc")] P2SH_VERBYTES = [bytes.fromhex("0efc")]
WIF_BYTE = bytes.fromhex("22de") WIF_BYTE = bytes.fromhex("230e")
GENESIS_HASH = ( GENESIS_HASH = (
'4261602a9d07d80ad47621a64ba6a07754902e496777edc4ff581946bd7bc29c') 'a649dce53918caf422e9c711c858837e08d626ecfcd198969b24f7b634a49bac')
BASIC_HEADER_SIZE = 180 BASIC_HEADER_SIZE = 180
ALLOW_ADVANCING_ERRORS = True ALLOW_ADVANCING_ERRORS = True
TX_COUNT = 217380620 TX_COUNT = 217380620

Loading…
Cancel
Save