2 BTC or equal CNC. Reward on expertise inputs on p2pool code for CHNCoin (CNC)
Current code in use - https://github.com/chrda/p2pool-chncoin/blob/master/p2pool/networks.pySHARE_PERIOD=5, # seconds
CHAIN_LENGTH=12*60*60//10, # shares
REAL_CHAIN_LENGTH=12*60*60//10, # shares
TARGET_LOOKBEHIND=200, # shares
SPREAD=3, # blocks
Looking for optimize the p2pool share diff code for CNC.
Only expertise inputs will be considered for reward.
Make SHARE_PERIOD larger to attract more miners. Only miners with very low latencies can expect a good income with that short a period. Make it at least 10, 15 would be even better (the larger it is, the less miners will have low efficiency but the larger the variance in income might be).
SPREAD is too low for a fast coin like chinacoin (10x faster than Bitcoin and Litecoin). Make it 30 to compensate, this will reduce variance in payouts for miners by a factor of 10 -> good.
Suggested values : SHARE_PERIOD=15, SPREAD=30
If you don't want to see huge problems when upgrading, make sure you both :
- run new pools on different port and not upgrade in place
- publish all your change to a github repository so that other pools might follow you
Additionally you can update the p2p.py file to enforce a new protocol version to make sure older p2pools won't disturb your new network.
Don't play with these values without changing the protocol version once your network is connected to many other nodes: you risk the network to split in very nasty (income losing) ways.
*CHAIN_LENGTH don't matter much on CNC (p2pool has enough relative hashrate that it isn't used in practice to compute miners' income), leave them alone.
TARGET_LOOKBEHIND is fine, it shouldn't need any tuning.