Advertisement
m0gliE

IRCoin recommended settings for P2Pool nodes

Jun 27th, 2014
373
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.    
  2.     ),
  3.     ircoin=math.Object(
  4.         P2P_PREFIX='06060708'.decode('hex'),
  5.         P2P_PORT=57288,
  6.         ADDRESS_VERSION=102,
  7.         RPC_PORT=57284,
  8.         RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
  9.             'ircoinaddress' in (yield bitcoind.rpc_help()) and
  10.             not (yield bitcoind.rpc_getinfo())['testnet']
  11.         )),
  12.         SUBSIDY_FUNC=lambda height: 65536*100000000 >> (height + 1)//50000,
  13.         POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)),
  14.         BLOCK_PERIOD=60, # s
  15.         SYMBOL='IRC',
  16.         CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'IRCoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/IRCoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.IRCoin'), 'ircoin.conf'),
  17.         BLOCK_EXPLORER_URL_PREFIX='http://irc-explorer.zenet.org/block/',
  18.         ADDRESS_EXPLORER_URL_PREFIX='http://irc-explorer.zenet.org/address/',
  19.         TX_EXPLORER_URL_PREFIX='http://irc-explorer.zenet.org/tx/',
  20.         SANE_TARGET_RANGE=(2**256//100000000 - 1, 2**256//1000 - 1),
  21.         DUMB_SCRYPT_DIFF=2**16,
  22.         DUST_THRESHOLD=0.03e8,
  23.     ),
  24.  
  25.     ),
  26.     ircoin=math.Object(
  27.         PARENT=networks.nets['ircoin'],
  28.         SHARE_PERIOD=10, # seconds
  29.         NEW_SHARE_PERIOD=10, # seconds
  30.         CHAIN_LENGTH=24*60*60//10, # shares
  31.         REAL_CHAIN_LENGTH=24*60*60//10, # shares
  32.         TARGET_LOOKBEHIND=200, # shares
  33.         SPREAD=30, # blocks
  34.         NEW_SPREAD=30, # blocks
  35.         IDENTIFIER='578eb3879d051078'.decode('hex'),
  36.         PREFIX='d7939c89c17be8f3'.decode('hex'),
  37.         P2P_PORT=26667,
  38.         MIN_TARGET=0,
  39.         MAX_TARGET=2**256//2**20 - 1,
  40.         PERSIST=True,
  41.         WORKER_PORT=7970,
  42.         BOOTSTRAP_ADDRS='inetrader.com'.split(' '),
  43.         ANNOUNCE_CHANNEL='#p2pool-irc',
  44.         VERSION_CHECK=lambda v: True,
  45.         VERSION_WARNING=lambda v: 'Upgrade ircoin to >= 0.8.6.2!' if v < 70002 else None,
  46.     ),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement