spesmilo / electrumx

Alternative implementation of spesmilo/electrum-server
MIT License
439 stars 353 forks source link

coins.py Class for Lynx Blockchain #154

Closed getlynx closed 1 year ago

getlynx commented 3 years ago

The current class for Lynx in the coins.py file is currently...

class Lynx(Coin):
    NAME = "Lynx"
    SHORTNAME = "LYNX"
    NET = "mainnet"
    P2PKH_VERBYTE = bytes.fromhex("2d")
    P2SH_VERBYTES = (bytes.fromhex("16"),)
    WIF_BYTE = bytes.fromhex("ad")
    GENESIS_HASH = ('984b30fc9bb5e5ff424ad7f4ec193053'
                    '8a7b14a2d93e58ad7976c23154ea4a76')
    DESERIALIZER = lib_tx.DeserializerSegWit
    TX_COUNT = 1
    TX_COUNT_HEIGHT = 1
    TX_PER_BLOCK = 1
    RPC_PORT = 9139
    REORG_LIMIT = 5000

This code needs to be replaced with the newer, more complete version below. RPC Port was incorrect and more peers are added to the default list, as well as a comment about Doc.

# https://docs.getlynx.io/lynx-core/electrumx
class Lynx(Coin):
    NAME = "Lynx"
    SHORTNAME = "LYNX"
    NET = "mainnet"
    P2PKH_VERBYTE = bytes.fromhex("2d")
    P2SH_VERBYTES = (bytes.fromhex("16"),)
    WIF_BYTE = bytes.fromhex("ad")
    GENESIS_HASH = ('984b30fc9bb5e5ff424ad7f4ec193053'
                    '8a7b14a2d93e58ad7976c23154ea4a76')
    DESERIALIZER = lib_tx.DeserializerSegWit
    TX_COUNT = 1
    TX_COUNT_HEIGHT = 1
    TX_PER_BLOCK = 1
    RPC_PORT = 9332
    PEER_DEFAULT_PORTS = {'t': '50004', 's': '50002'}
    PEERS = [
        'electrum1.getlynx.io s t',
        'electrum2.getlynx.io s t',
        'electrum3.getlynx.io s t',
        'electrum4.getlynx.io s t',
        'electrum5.getlynx.io s t',
        'electrum1.getlynx.club s t',
        'electrum2.getlynx.club s t',
        'electrum3.getlynx.club s t',
        'electrum4.getlynx.club s t',
        'electrum5.getlynx.club s t',
        'electrum1.logware.io s t',
        'electrum2.logware.io s t',
        'electrum3.logware.io s t',
        'electrum4.logware.io s t',
        'electrum5.logware.io s t',
        'electrum1.logware.cloud s t',
        'electrum2.logware.cloud s t',
        'electrum3.logware.cloud s t',
        'electrum4.logware.cloud s t',
        'electrum5.logware.cloud s t',
        'electrum1.logware.club s t',
        'electrum2.logware.club s t',
        'electrum3.logware.club s t',
        'electrum4.logware.club s t',
        'electrum5.logware.club s t',
        'electrum1.logware.us s t',
        'electrum2.logware.us s t',
        'electrum3.logware.us s t',
        'electrum4.logware.us s t',
        'electrum5.logware.us s t',
        'electrum1.logware.net s t',
        'electrum2.logware.net s t',
        'electrum3.logware.net s t',
        'electrum4.logware.net s t',
        'electrum5.logware.net s t',
        'electrum1.getlynx.art s t',
        'electrum2.getlynx.art s t',
        'electrum3.getlynx.art s t',
        'electrum4.getlynx.art s t',
        'electrum5.getlynx.art s t',
        'electrum1.getlynx.cat s t',
        'electrum2.getlynx.cat s t',
        'electrum3.getlynx.cat s t',
        'electrum4.getlynx.cat s t',
        'electrum5.getlynx.cat s t',
        'electrum1.getlynx.org s t',
        'electrum2.getlynx.org s t',
        'electrum3.getlynx.org s t',
        'electrum4.getlynx.org s t',
        'electrum5.getlynx.org s t',
        'electrum1.getlynx.xyz s t',
        'electrum2.getlynx.xyz s t',
        'electrum3.getlynx.xyz s t',
        'electrum4.getlynx.xyz s t',
        'electrum5.getlynx.xyz s t',
    ]
    REORG_LIMIT = 5000
SomberNight commented 1 year ago

open a PR instead