Advertisement
Guest User

Netcoin P2pool code

a guest
Nov 19th, 2013
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. netcoin=math.Object(
  2. PARENT=networks.nets['netcoin'],
  3. SHARE_PERIOD=15, # seconds
  4. CHAIN_LENGTH=24*60*60//10, # shares
  5. REAL_CHAIN_LENGTH=24*60*60//10, # shares
  6. TARGET_LOOKBEHIND=200, # shares
  7. SPREAD=30, # blocks
  8. IDENTIFIER='eaaed5b8c6923410'.decode('hex'),
  9. PREFIX='720eacae3ef629b0'.decode('hex'),
  10. P2P_PORT=11315,
  11. MIN_TARGET=0,
  12. MAX_TARGET=2**256//2**20 - 1,
  13. PERSIST=False,
  14. WORKER_PORT=5432,
  15. BOOTSTRAP_ADDRS=''.split(' '),
  16. ANNOUNCE_CHANNEL='#p2pool-ltc',
  17. VERSION_CHECK=lambda v: True,
  18. )
  19.  
  20. netcoin=math.Object(
  21. P2P_PREFIX='fdb6a5db'.decode('hex'),
  22. P2P_PORT=11310,
  23. ADDRESS_VERSION=112,
  24. RPC_PORT=11311,
  25. RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
  26. 'netcoinaddress' in (yield bitcoind.rpc_help()) and
  27. not (yield bitcoind.rpc_getinfo())['testnet']
  28. )),
  29. SUBSIDY_FUNC=lambda height: 1024*320636160 >> (height + 1)//129600,
  30. POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)),
  31. BLOCK_PERIOD=60, # s
  32. SYMBOL='NET',
  33. CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'NetCoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/NetCoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.netcoin'), 'netcoin.conf'),
  34. BLOCK_EXPLORER_URL_PREFIX='http://frawgie.hopto.org/search?q=',
  35. ADDRESS_EXPLORER_URL_PREFIX='http://frawgie.hopto.org/search?q=',
  36. TX_EXPLORER_URL_PREFIX='http://frawgie.hopto.org/search?q=',
  37. SANE_TARGET_RANGE=(2**256//1000000000 - 1, 2**256//1000 - 1),
  38. DUMB_SCRYPT_DIFF=2**16,
  39. DUST_THRESHOLD=0.03e8,
  40. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement