Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # RubyCoin recommended settings for P2Pool nodes
- # ~/p2pool/p2pool/networks/rubycoin.py
- from p2pool.bitcoin import networks
- PARENT = networks.nets['rubycoin']
- SHARE_PERIOD = 10 # seconds
- NEW_SHARE_PERIOD = 10 # seconds
- CHAIN_LENGTH = 24*60*60//10 # shares
- REAL_CHAIN_LENGTH = 24*60*60//10 # shares
- TARGET_LOOKBEHIND = 60 # shares
- SPREAD = 30 # blocks
- NEW_SPREAD = 30 # blocks
- IDENTIFIER = '2AACE3492BA631ED'.decode('hex')
- PREFIX = '2ABCE3432BA231ED'.decode('hex')
- P2P_PORT = 19186
- MIN_TARGET = 0
- MAX_TARGET = 2**256//2**20 - 1
- PERSIST = False
- WORKER_PORT = 19189
- BOOTSTRAP_ADDRS = ''.split(' ')
- ANNOUNCE_CHANNEL = '#p2pool-ruby'
- VERSION_CHECK = lambda v: True
- # ~/p2pool/p2pool/networks/bitcoin/rubycoin.py
- import os
- import platform
- from twisted.internet import defer
- from .. import data, helper
- from p2pool.util import pack
- P2P_PREFIX = 'fbc0b6db'.decode('hex')
- P2P_PORT = 4937
- ADDRESS_VERSION = 61
- RPC_PORT = 4938
- RPC_CHECK = defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
- 'rubycoinaddress' in (yield bitcoind.rpc_help()) and
- not (yield bitcoind.rpc_getinfo())['testnet']
- ))
- SUBSIDY_FUNC = lambda height: 50*100000000
- POW_FUNC = lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data))
- BLOCK_PERIOD = 150 # s
- SYMBOL = 'RUBY'
- 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')
- BLOCK_EXPLORER_URL_PREFIX = 'http://chainz.cryptoid.info/rby/block.dws?'
- ADDRESS_EXPLORER_URL_PREFIX = 'http://chainz.cryptoid.info/rby/address.dws?'
- TX_EXPLORER_URL_PREFIX = 'http://chainz.cryptoid.info/rby/tx.dws?'
- SANE_TARGET_RANGE = (2**256//100000000 - 1, 2**256//1000 - 1)
- DUMB_SCRYPT_DIFF = 2**16
- DUST_THRESHOLD = 0.03e8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement