Skip to content

Commit

Permalink
Add Caishen support
Browse files Browse the repository at this point in the history
Based on information from here: https://bitcointa.lk/threads/ann-p2pool-cai-first-caishen-p2pool.291148/#post-6031449
As no full source was released, rest of values are default, guessed or based on Caishen source.
Until confirmed by thepool.pw it's not sure if it's 100% compatible but seems to work for now.
  • Loading branch information
Lovok committed Apr 24, 2014
1 parent f531d07 commit 009e21a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions p2pool/networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,25 @@
VERSION_WARNING=lambda v: 'Upgrade Spaincoin to >=0.8.8.0!' if v < 80800 else None,
),

caishen=math.Object(
PARENT=networks.nets['caishen'],
SHARE_PERIOD=15, # seconds
CHAIN_LENGTH=24*60*60//10, # shares
REAL_CHAIN_LENGTH=24*60*60//10, # shares
TARGET_LOOKBEHIND=200, # shares
SPREAD=12, # blocks
IDENTIFIER='a06a81c827cab9e3'.decode('hex'),
PREFIX='7c3614a6bcdcf7e4'.decode('hex'),
P2P_PORT=2828,
MIN_TARGET=4,
MAX_TARGET=2**256//2**20 - 1,
PERSIST=False,
WORKER_PORT=2888,
BOOTSTRAP_ADDRS='thepool.pw lovok.no-ip.com'.split(' '),
ANNOUNCE_CHANNEL='#p2pool-cai',
VERSION_CHECK=lambda v: True,
),

)
for net_name, net in nets.iteritems():
net.NAME = net_name

0 comments on commit 009e21a

Please sign in to comment.