Bitcoin Forum
May 09, 2024, 10:50:57 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Fastcoin recommended settings for P2Pool nodes  (Read 648 times)
m0gliE (OP)
Full Member
***
Offline Offline

Activity: 129
Merit: 102


View Profile
January 26, 2014, 12:26:30 PM
Last edit: March 31, 2014, 07:46:52 PM by m0gliE
 #1

Fastcoin recommended settings for P2Pool nodes
----------------------------------------------
 
Updated - 3/25/14 - P2Pool Fork - https://github.com/d0gZpAw/p2pool
 
- p2pool/networks.py
 
Code:
),
    fastcoin=math.Object(
        PARENT=networks.nets['fastcoin'],
        SHARE_PERIOD=6, # seconds
        NEW_SHARE_PERIOD=6, # seconds
        CHAIN_LENGTH=24*60*60//10, # shares
        REAL_CHAIN_LENGTH=24*60*60//10, # shares
        TARGET_LOOKBEHIND=60, # shares
        SPREAD=150, # blocks
        NEW_SPREAD=150, # blocks
        IDENTIFIER='9f2e390aa41ffade'.decode('hex'),
        PREFIX='50f713ab040dfade'.decode('hex'),
        P2P_PORT=23660,
        MIN_TARGET=0,
        MAX_TARGET=2**256//2**20 - 1,
        PERSIST=False,
        WORKER_PORT=5150,
        BOOTSTRAP_ADDRS='fst.inetrader.com'.split(' '),
        ANNOUNCE_CHANNEL='#p2pool-fst',
        VERSION_CHECK=lambda v: True,
        VERSION_WARNING=lambda v: 'Upgrade Fastcoin to >= 0.8.5.1!' if v < 70002 else None,
    ),

- p2pool/bitcoin/networks.py
 
Code:
),
    fastcoin=math.Object(
        P2P_PREFIX='fbc0b6db'.decode('hex'),
        P2P_PORT=9526,
        ADDRESS_VERSION=96,
        RPC_PORT=9527,
        RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
            'fastcoinaddress' in (yield bitcoind.rpc_help()) and
            not (yield bitcoind.rpc_getinfo())['testnet']
        )),
        SUBSIDY_FUNC=lambda height: 32*100000000 >> (height + 1)//2592000,
        POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)),
        BLOCK_PERIOD=12, # s
        SYMBOL='FST',
        CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'Fastcoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/Fastcoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.fastcoin'), 'fastcoin.conf'),
        BLOCK_EXPLORER_URL_PREFIX='http://fst.webboise.com/block/',
        ADDRESS_EXPLORER_URL_PREFIX='http://fst.webboise.com/address/',
        TX_EXPLORER_URL_PREFIX='http://fst.webboise.com/tx/',
        SANE_TARGET_RANGE=(2**256//100000000 - 1, 2**256//1000 - 1),
        DUMB_SCRYPT_DIFF=2**16,
        DUST_THRESHOLD=0.03e8,
    ),
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!