From dc35d3f8da397e1723e7c99a408756d3f3cf6efb Mon Sep 17 00:00:00 2001 From: WO <35449969+wo01@users.noreply.github.com> Date: Mon, 29 Jan 2018 23:47:23 +0900 Subject: [PATCH] Add Koto (#358) * add Koto * Add testfile --- lib/coins.py | 16 ++++++++++++++++ tests/blocks/koto_mainnet_60000.json | 14 ++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 tests/blocks/koto_mainnet_60000.json diff --git a/lib/coins.py b/lib/coins.py index abe68b7..1e426b2 100644 --- a/lib/coins.py +++ b/lib/coins.py @@ -913,6 +913,22 @@ class Zclassic(EquihashMixin, Coin): RPC_PORT = 8023 REORG_LIMIT = 800 +class Koto(Coin): + NAME = "Koto" + SHORTNAME = "KOTO" + NET = "mainnet" + P2PKH_VERBYTE = bytes.fromhex("1836") + P2SH_VERBYTES = [bytes.fromhex("183B")] + WIF_BYTE = bytes.fromhex("80") + GENESIS_HASH = ('6d424c350729ae633275d51dc3496e16' + 'cd1b1d195c164da00f39c499a2e9959e') + DESERIALIZER = lib_tx.DeserializerZcash + TX_COUNT = 158914 + TX_COUNT_HEIGHT = 67574 + TX_PER_BLOCK = 3 + RPC_PORT = 8432 + REORG_LIMIT = 800 + class Komodo(KomodoMixin, EquihashMixin, Coin): NAME = "Komodo" SHORTNAME = "KMD" diff --git a/tests/blocks/koto_mainnet_60000.json b/tests/blocks/koto_mainnet_60000.json new file mode 100644 index 0000000..08f3935 --- /dev/null +++ b/tests/blocks/koto_mainnet_60000.json @@ -0,0 +1,14 @@ +{ + "hash": "09553d8cb7eabfa0a18b255d3342f171677602ace60b9be194dc562fbfa1ec32", + "size": 232, + "height": 60000, + "merkleroot": "7305c96169dc67141657d167541c50c253259d6b1150b468cbbd1a9f636e09db", + "tx": [ + "7305c96169dc67141657d167541c50c253259d6b1150b468cbbd1a9f636e09db" + ], + "time": 1516755328, + "nonce": 2806579424, + "bits": "1d0fe10c", + "previousblockhash": "66e4d540023f71e52e7e2fb68e1a2757ca6eeccb9d1b69ed5e8689d425a2b2eb", + "block": "04000000ebb2a225d489865eed691b9dcbec6eca57271a8eb62f7e2ee5713f0240d5e466db096e639f1abdcb68b450116b9d2553c2501c5467d157161467dc6961c9057380d9675a0ce10f1de00049a70101000000010000000000000000000000000000000000000000000000000000000000000000ffffffff200360ea000480d9675a087ffffe52000000000d2f6e6f64655374726174756d2fffffffff020003164e020000001976a914a4e47780f16cb0f4617946417edaa60a0077857388ac00e1f505000000001976a91452d162b995a7da28fc9c3512857f80d82e9a3b3488ac00000000" +}