From d6c15d6ea2881b87ac7346f15e148b3089f6034e Mon Sep 17 00:00:00 2001 From: Vivek Teegalapally Date: Wed, 1 Aug 2018 03:07:14 +0530 Subject: [PATCH] Fix for FLO testnet FLO testnet works on ElectrumX after this commit. The user will have to change the port where ElectrumX will detect FLO testnet's full node. The change has to be done in electrumx.conf file --- electrumx/lib/coins.py | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/electrumx/lib/coins.py b/electrumx/lib/coins.py index ed11121..81f896f 100644 --- a/electrumx/lib/coins.py +++ b/electrumx/lib/coins.py @@ -1899,14 +1899,14 @@ class Monoeci(Coin): return x11_hash.getPoWHash(header) class Flo(Coin): - NAME = "Flo" + NAME = "FLO" SHORTNAME = "FLO" NET = "mainnet" XPUB_VERBYTES = bytes.fromhex("0134406b") XPRV_VERBYTES = bytes.fromhex("01343c31") P2PKH_VERBYTE = bytes.fromhex("23") P2SH_VERBYTES = [bytes.fromhex("08")] - WIF_BYTE = bytes.fromhex("b0") + WIF_BYTE = bytes.fromhex("a3") GENESIS_HASH = ('09c7781c9df90708e278c35d38ea5c9041d7ecfcdd1c56ba67274b7cff3e1cea') TX_COUNT = 8908766 TX_COUNT_HEIGHT = 1105256 @@ -1916,3 +1916,22 @@ class Flo(Coin): PEERS = [ ] DESERIALIZER = lib_tx.DeserializerFlo + + +class FloTestnet(Flo): + SHORTNAME = "XFL" + NET = "testnet" + XPUB_VERBYTES = bytes.fromhex("013440e2") + XPRV_VERBYTES = bytes.fromhex("01343c23") + P2PKH_VERBYTE = bytes.fromhex("73") + P2SH_VERBYTES = bytes.fromhex("c6") + WIF_BYTE = bytes.fromhex("ef") + GENESIS_HASH = ('9b7bc86236c34b5e3a39367c036b7fe8807a966c22a7a1f0da2a198a27e03731') + TX_COUNT = 21772 + TX_COUNT_HEIGHT = 20800 + TX_PER_BLOCK = 2 + RPC_PORT = 17313 + REORG_LIMIT = 4000 + PEER_DEFAULT_PORTS = {'t': '51001', 's': '51002'} + PEERS = [ + ]