Advertisement
m0gliE

RubyCoin recommended settings for P2Pool nodes

Jul 22nd, 2014
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 1.92 KB | None | 0 0
  1. # RubyCoin recommended settings for P2Pool nodes  
  2.  
  3. # ~/p2pool/p2pool/networks/rubycoin.py
  4.  
  5. from p2pool.bitcoin import networks
  6.  
  7. PARENT = networks.nets['rubycoin']
  8. SHARE_PERIOD = 10 # seconds
  9. NEW_SHARE_PERIOD = 10 # seconds
  10. CHAIN_LENGTH = 24*60*60//10 # shares
  11. REAL_CHAIN_LENGTH = 24*60*60//10 # shares
  12. TARGET_LOOKBEHIND = 60 # shares
  13. SPREAD = 30 # blocks
  14. NEW_SPREAD = 30 # blocks
  15. IDENTIFIER = '2AACE3492BA631ED'.decode('hex')
  16. PREFIX = '2ABCE3432BA231ED'.decode('hex')
  17. P2P_PORT = 19186
  18. MIN_TARGET = 0
  19. MAX_TARGET = 2**256//2**20 - 1
  20. PERSIST = False
  21. WORKER_PORT = 19189
  22. BOOTSTRAP_ADDRS = ''.split(' ')
  23. ANNOUNCE_CHANNEL = '#p2pool-ruby'
  24. VERSION_CHECK = lambda v: True
  25.  
  26. # ~/p2pool/p2pool/networks/bitcoin/rubycoin.py
  27.  
  28. import os
  29. import platform
  30.  
  31. from twisted.internet import defer
  32.  
  33. from .. import data, helper
  34. from p2pool.util import pack
  35.  
  36.  
  37. P2P_PREFIX = 'fbc0b6db'.decode('hex')
  38. P2P_PORT = 4937
  39. ADDRESS_VERSION = 61
  40. RPC_PORT = 4938
  41. RPC_CHECK = defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
  42.             'rubycoinaddress' in (yield bitcoind.rpc_help()) and
  43.             not (yield bitcoind.rpc_getinfo())['testnet']
  44.         ))
  45. SUBSIDY_FUNC = lambda height: 50*100000000
  46. POW_FUNC = lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data))
  47. BLOCK_PERIOD = 150 # s
  48. SYMBOL = 'RUBY'
  49. CONF_FILE_FUNC = lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'Rubycoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/Rubycoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.rubycoin'), 'rubycoin.conf')
  50. BLOCK_EXPLORER_URL_PREFIX = 'http://chainz.cryptoid.info/rby/block.dws?'
  51. ADDRESS_EXPLORER_URL_PREFIX = 'http://chainz.cryptoid.info/rby/address.dws?'
  52. TX_EXPLORER_URL_PREFIX = 'http://chainz.cryptoid.info/rby/tx.dws?'
  53. SANE_TARGET_RANGE = (2**256//100000000 - 1, 2**256//1000 - 1)
  54. DUMB_SCRYPT_DIFF = 2**16
  55. DUST_THRESHOLD = 0.03e8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement