Advertisement
m0gliE

Zimstake recommended settings for P2Pool nodes

Apr 29th, 2014
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     ## Zimstake recommended settings for P2Pool nodes
  2.      
  3.    
  4.     ## p2pool/networks.py
  5.      
  6.     ),
  7.         zimstake=math.Object(
  8.             PARENT=networks.nets['zimstake'],
  9.             SHARE_PERIOD=30, # seconds
  10.             CHAIN_LENGTH=60*60//30, # shares
  11.             REAL_CHAIN_LENGTH=60*60//30, # shares
  12.             TARGET_LOOKBEHIND=200, # shares
  13.             SPREAD=15, # blocks
  14.             IDENTIFIER='c21d2323b5b7a35e'.decode('hex'),
  15.             PREFIX='c323d92112a2b4a1'.decode('hex'),
  16.             P2P_PORT=21125,
  17.             MIN_TARGET=0,
  18.             MAX_TARGET=2**256//2**32 - 1,
  19.             PERSIST=True,
  20.             WORKER_PORT=21120,
  21.             BOOTSTRAP_ADDRS='zs.cryptopool.zone'.split(' '),
  22.             ANNOUNCE_CHANNEL='#p2pool-alt',
  23.             VERSION_CHECK=lambda v: True,
  24.             VERSION_WARNING=lambda v: 'Upgrade Zimstake to >= 1.0.1.1!' if v < 60000 else None,
  25.     ),
  26.      
  27.     ## p2pool/bitcoin/networks.py
  28.      
  29.     ),
  30.         zimstake=math.Object(
  31.             P2P_PREFIX='69420522'.decode('hex'),
  32.             P2P_PORT=12125,
  33.             ADDRESS_VERSION=32,
  34.             RPC_PORT=12126,
  35.             RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
  36.                 'zimstakeaddress' in (yield bitcoind.rpc_help()) and
  37.                 not (yield bitcoind.rpc_getinfo())['testnet']
  38.             )),
  39.             SUBSIDY_FUNC=lambda height: 512*100000000,
  40.             POW_FUNC=data.hash256,
  41.             BLOCK_PERIOD=60, # s
  42.             SYMBOL='ZS',
  43.             CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'Zimstake') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/Zimstake/') if platform.system() == 'Darwin' else os.path.expanduser('~/.zimstake'), 'zimstake.conf'),
  44.             BLOCK_EXPLORER_URL_PREFIX='http://coinia.net/zimstake/getbalance.php?addr=',
  45.             ADDRESS_EXPLORER_URL_PREFIX='http://coinia.net/zimstake/getbalance.php?addr=',
  46.             TX_EXPLORER_URL_PREFIX='http://explore.zimstake.us/index.php?transaction=',
  47.             SANE_TARGET_RANGE=(2**256//2**32//1000 - 1, 2**256//2**32 - 1),
  48.             DUMB_SCRYPT_DIFF=1,
  49.             DUST_THRESHOLD=0.1e8,
  50.     ),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement