Added HOdlcoin support. (#350)
* Added HOdlcoin support. * Update coins.py * HOdlcoin block test
This commit is contained in:
parent
7126864052
commit
1da936a59b
15
lib/coins.py
15
lib/coins.py
@ -380,6 +380,21 @@ class BitcoinMixin(object):
|
||||
'4ff763ae46a2a6c172b3f1b60a8ce26f')
|
||||
RPC_PORT = 8332
|
||||
|
||||
class HOdlcoin(Coin):
|
||||
NAME = "HOdlcoin"
|
||||
SHORTNAME = "HODLC"
|
||||
NET = "mainnet"
|
||||
BASIC_HEADER_SIZE = 88
|
||||
P2PKH_VERBYTE = bytes.fromhex("28")
|
||||
P2SH_VERBYTES = [bytes.fromhex("05")]
|
||||
WIF_BYTE = bytes.fromhex("a8")
|
||||
GENESIS_HASH = ('008872e5582924544e5c707ee4b839bb'
|
||||
'82c28a9e94e917c94b40538d5658c04b')
|
||||
DESERIALIZER = lib_tx.DeserializerSegWit
|
||||
TX_COUNT = 258858
|
||||
TX_COUNT_HEIGHT = 382138
|
||||
TX_PER_BLOCK = 5
|
||||
|
||||
|
||||
class BitcoinCash(BitcoinMixin, Coin):
|
||||
NAME = "BitcoinCash"
|
||||
|
||||
20
tests/blocks/hodlcoin_mainnet_38200.json
Normal file
20
tests/blocks/hodlcoin_mainnet_38200.json
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user