Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from p2pool.bitcoin import networks
- from p2pool.util import math
- # CHAIN_LENGTH = number of shares back client keeps
- # REAL_CHAIN_LENGTH = maximum number of shares back client uses to compute payout
- # REAL_CHAIN_LENGTH must always be <= CHAIN_LENGTH
- # REAL_CHAIN_LENGTH must be changed in sync with all other clients
- # changes can be done by changing one, then the other
- nets = dict(
- oscoin=math.Object(
- PARENT=networks.nets['oscoin'],
- SHARE_PERIOD=30, # seconds
- CHAIN_LENGTH=24*60*60//10, # shares
- REAL_CHAIN_LENGTH=24*60*60//10, # shares
- TARGET_LOOKBEHIND=200, # shares
- SPREAD=3, # blocks
- IDENTIFIER='fc70000000000000'.decode('hex'),
- PREFIX='2472000000000000'.decode('hex'),
- P2P_PORT=,
- MIN_TARGET=0,
- MAX_TARGET=2**256//2**32 - 1,
- PERSIST=False,
- WORKER_PORT=9332,
- BOOTSTRAP_ADDRS=''.split(' '),
- ANNOUNCE_CHANNEL='#p2pool',
- VERSION_CHECK=lambda v: 50700 <= v < 60000 or 60010 <= v < 60100 or 60400 <= v,
- VERSION_WARNING=lambda v: 'Upgrade Bitcoin to >=0.8.5!' if v < 80500 else None,
- ),
- )
- for net_name, net in nets.iteritems():
- net.NAME = net_name
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement