From 93ee197b48079a0c73e92260e7d19d72da4cdda3 Mon Sep 17 00:00:00 2001 From: WO <35449969+wo01@users.noreply.github.com> Date: Sat, 9 Jun 2018 11:07:36 +0900 Subject: [PATCH] Add Koto testnet (#491) --- lib/coins.py | 17 +++++++++++++++++ tests/blocks/koto_testnet_10000.json | 14 ++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 tests/blocks/koto_testnet_10000.json diff --git a/lib/coins.py b/lib/coins.py index fa7793e..738d494 100644 --- a/lib/coins.py +++ b/lib/coins.py @@ -1047,6 +1047,23 @@ class Koto(Coin): 'electrum.kotocoin.info s t', ] +class KotoTestnet(Koto): + SHORTNAME = "TOKO" + NET = "testnet" + P2PKH_VERBYTE = bytes.fromhex("18A4") + P2SH_VERBYTES = [bytes.fromhex("1839")] + WIF_BYTE = bytes.fromhex("EF") + GENESIS_HASH = ('bf84afbde20c2d213b68b231ddb585ab' + '616ef7567226820f00d9b397d774d2f0') + TX_COUNT = 91144 + TX_COUNT_HEIGHT = 89662 + TX_PER_BLOCK = 1 + RPC_PORT = 18432 + PEER_DEFAULT_PORTS = {'t': '51001', 's': '51002'} + PEERS = [ + 'testnet.kotocoin.info s t', + ] + class Komodo(KomodoMixin, EquihashMixin, Coin): NAME = "Komodo" SHORTNAME = "KMD" diff --git a/tests/blocks/koto_testnet_10000.json b/tests/blocks/koto_testnet_10000.json new file mode 100644 index 0000000..00e7aad --- /dev/null +++ b/tests/blocks/koto_testnet_10000.json @@ -0,0 +1,14 @@ +{ + "hash": "a9b4154878118387b4494ba0ee9c68c46572442a10613dfe8150fa5810fa70fd", + "size": 170, + "height": 10000, + "merkleroot": "9ebd0c89c919e18eb5c353dbd1faad4e322cde50a814ce36cf0d33ce7a925d56", + "tx": [ + "9ebd0c89c919e18eb5c353dbd1faad4e322cde50a814ce36cf0d33ce7a925d56" + ], + "time": 1521741949, + "nonce": 1023934464, + "bits": "1f052641", + "previousblockhash": "84fdcc6d547b652aa86ce52ca593887c8d126dc81d840addb8f8dc55f6282e29", + "block": "04000000292e28f655dcf8b8dd0a841dc86d128d7c8893a52ce56ca82a657b546dccfd84565d927ace330dcf36ce14a850de2c324eadfad1db53c3b58ee119c9890cbd9e7df0b35a4126051f0000083d0101000000010000000000000000000000000000000000000000000000000000000000000000ffffffff0402102700ffffffff019032f989000000001976a9145754343f9da87f8ede9461d41407de4e0f76879688ac00000000" +}