Skip to content

Commit

Permalink
Add Quebecoin support (#996)
Browse files Browse the repository at this point in the history
* add Quebecoin support

* fixed missing empty line

Co-authored-by: morinpa <morinpa@electrumx.pokemon.org>
  • Loading branch information
morinpa and morinpa committed Apr 8, 2020
1 parent bec0ec5 commit 49a6ad1
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
19 changes: 19 additions & 0 deletions electrumx/lib/coins.py
Expand Up @@ -3774,3 +3774,22 @@ class Donu(Coin):
TX_PER_BLOCK = 10
RPC_PORT = 26381
REORG_LIMIT = 800


class Quebecoin(AuxPowMixin, Coin):
NAME = "Quebecoin"
SHORTNAME = "QBC"
NET = "mainnet"
XPUB_VERBYTES = bytes.fromhex("0488b21e")
XPRV_VERBYTES = bytes.fromhex("0488ade4")
P2PKH_VERBYTE = bytes.fromhex("3a")
P2SH_VERBYTES = [bytes.fromhex("05")]
WIF_BYTE = bytes.fromhex("ba")
GENESIS_HASH = ('000008c2d57759af6462352ee9f4923d'
'97401cb599a9318e6595a2a74c26ea74')
DESERIALIZER = lib_tx.DeserializerAuxPowSegWit
TX_COUNT = 1
TX_COUNT_HEIGHT = 1
TX_PER_BLOCK = 20
REORG_LIMIT = 2000
RPC_PORT = 10890
14 changes: 14 additions & 0 deletions tests/blocks/quebecoin_mainnet_472979.json
@@ -0,0 +1,14 @@
{
"hash": "d591d7931d813ede4dad236ac02328e18089ee41328c29c97fe0a5c15425efc7",
"size": 266,
"height": 472979,
"merkleroot": "fe9ab946b7699f42d6ae7b649a132db0d35116fa43e3368a856f3be6a4236a3f",
"tx": [
"fe9ab946b7699f42d6ae7b649a132db0d35116fa43e3368a856f3be6a4236a3f"
],
"time": 1586045460,
"nonce": 262815792,
"bits": "1d0453b9",
"previousblockhash": "d92a49acbfa7f9cd0e0c660842dec1811efa62299aff45500c3dc23aa1f6aa23",
"block":"00026c2023aaf6a13ac23d0c5045ff9a2962fa1e81c1de4208660c0ecdf9a7bfac492ad93f6a23a4e63b6f858a36e343fa1651d3b02d139a647baed6429f69b746b99afe1422895eb953041d3040aa0f0102000000010000000000000000000000000000000000000000000000000000000000000000ffffffff4403933707041422895e0881001bfe010000007969696d7000fabe6d6d44693c77bafea92e0697f30f291a1ca8f124a9881a9bb322856a75dde39a48280200000000000000000000000220bcbe000000000017a91425be1773fab39d39cd4b0c7ecfe59e7f0ea30f1b8720bcbe00000000001976a914d85c9e8bdcce3d3c03b0967efe92f33b1fc9c18888ac00000000"
}

0 comments on commit 49a6ad1

Please sign in to comment.