Skip to content

Commit

Permalink
Add Fastcoin to coins.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fastcoin-project authored Jun 6, 2021
1 parent 74c8ce7 commit b0aee20
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion electrumx/lib/coins.py
Original file line number Diff line number Diff line change
Expand Up @@ -3363,7 +3363,31 @@ class Sumcoin(Coin):
PEER_DEFAULT_PORTS = {'t': '53332', 's': '53333'}
PEERS = []



# Source: https://github.com/fastcoin-project/fastcoin
class Fastcoin(AuxPowMixin, Coin):
NAME = "Fastcoin"
SHORTNAME = "FST"
NET = "mainnet"
XPUB_VERBYTES = bytes.fromhex("0488b21e") #
XPRV_VERBYTES = bytes.fromhex("0488ade4") #
P2PKH_VERBYTE = bytes.fromhex("60")
# P2PKH_VERBYTE = base58Prefixes[PUBKEY_ADDRESS] from hex to decimal
P2SH_VERBYTES = [bytes.fromhex("14")]
# P2SH_VERBYTES base58Prefixes[SCRIPT_ADDRESS] = fro hex to decimal
WIF_BYTE = bytes.fromhex("E0")
# WIF_BYTE ase58Prefixes[SECRET_KEY] = decimal to hex
GENESIS_HASH = ('ecba185817b726ef62e53afb14241a80'
'95bd9613d2d3df679911029b83c98e5b')
# Genesis to fit length
TX_COUNT = 2068178
TX_COUNT_HEIGHT = 11485363
TX_PER_BLOCK = 2
REORG_LIMIT = 2000
RPC_PORT = 9527
PEERS = [] # add when available


#class SumcoinTestnet(Sumcoin):
# SHORTNAME = "TSUM"
# NET = "testnet"
Expand Down

0 comments on commit b0aee20

Please sign in to comment.