I do NOT seem to be experiencing that problem....
everytime theres a new block, it updates to 22, not 20
maybe its the fork or version of p2pool that you are using.....
or maybe related to the xcoin-hash-python module you are using.....
I am running a custom X11-hash-python module ( since the xcoin one was removed from github for some reason )
my webstats auto-updates... I have been watching the BLOCK REWARD and payouts.....
it is always correct
my bitcoin network.py:
darkcoin=math.Object(
P2P_PREFIX='fbc0b6db'.decode('hex'),
P2P_PORT=11300,
ADDRESS_VERSION=48+28, #pubkey_address
RPC_PORT=11302,
RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
'darkcoinaddress' in (yield bitcoind.rpc_help()) and
not (yield bitcoind.rpc_getinfo())['testnet']
)),
SUBSIDY_FUNC=lambda height: 22*10000000 >> (height + 1)//2102400,
BLOCKHASH_FUNC=lambda data: pack.IntType(256).unpack(__import__('x11_hash').getPoWHash(data)),
POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('x11_hash').getPoWHash(data)),
BLOCK_PERIOD=60, # s
SYMBOL='DRK',
CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'FoxCoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/FoxCoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.darkcoin'), 'darkcoin.conf'),
BLOCK_EXPLORER_URL_PREFIX='
http://altexplorer.net/block/', #dummy
ADDRESS_EXPLORER_URL_PREFIX='
http://altexplorer.net/address/',
TX_EXPLORER_URL_PREFIX='
http://altexplorer.net/tx/',
SANE_TARGET_RANGE=(2**256//2**32//1000 - 1, 2**256//2**20 - 1),
DUMB_SCRYPT_DIFF=1,
DUST_THRESHOLD=0.001e8,
),
my p2pool network.py:
darkcoin=math.Object(
PARENT=networks.nets['darkcoin'],
SHARE_PERIOD=10, # seconds
CHAIN_LENGTH=24*60*60//10, # shares
REAL_CHAIN_LENGTH=24*60*60//10, # shares
TARGET_LOOKBEHIND=20, # shares
SPREAD=5, # blocks
IDENTIFIER='fcfcd9d9b7b7ddedb5'.decode('hex'),
PREFIX='fbc0b6db'.decode('hex'),
P2P_PORT=14471,
MIN_TARGET=0,
MAX_TARGET=2**256//2**20 - 1,
PERSIST=False,
WORKER_PORT=23271,
BOOTSTRAP_ADDRS=''.split(' '),
ANNOUNCE_CHANNEL='',
VERSION_CHECK=lambda v: True,
),
im not sure if the share period / chain lengths are correct,
but the pool is working, hardly any DOA at all, and there are several miners in the p2pool.....
i need to match your IDENTIFIER="" in order to connect as a peer i believe.