hi guys.
after allot of seatch and all that stuff i changed the networks.py to both bolther. i also changed the main.py to agree with my worldcoin configuration. with help of this link above.
https://github.com/rbdrbd/p2pool/commit/596c7483b4d24b8e7063a68dfb1513a2120f2e52also my settings are like this
nets = dict(
worldcoin=math.Object(
PARENT=networks.nets['worldcoin'],
SHARE_PERIOD=30, # seconds
CHAIN_LENGTH=24*60*60//30, # shares
REAL_CHAIN_LENGTH=24*60*60//30, # shares
TARGET_LOOKBEHIND=200, # shares
SPREAD=3, # blocks
IDENTIFIER='f982abe394923510'.decode('hex'),
PREFIX='8208c1a53ef649b0'.decode('hex'),
P2P_PORT=9767,
MIN_TARGET=0,
MAX_TARGET=2**256//2**20 - 1,
PERSIST=False,
WORKER_PORT=8336,
BOOTSTRAP_ADDRS=''.split(' '),
ANNOUNCE_CHANNEL='#p2pool-alt',
VERSION_CHECK=lambda v: v >= 60004,
),
worldcoin_testnet=math.Object(
PARENT=networks.nets['worldcoin_testnet'],
SHARE_PERIOD=3, # seconds
CHAIN_LENGTH=20*60//3, # shares
REAL_CHAIN_LENGTH=20*60//3, # shares
TARGET_LOOKBEHIND=200, # shares
SPREAD=12, # blocks
IDENTIFIER='f982abe394923510'.decode('hex'),
PREFIX='8208c1a54ef649b0'.decode('hex'),
P2P_PORT=19767,
MIN_TARGET=0,
MAX_TARGET=2**256//2**20 - 1,
PERSIST=False,
WORKER_PORT=18336,
BOOTSTRAP_ADDRS=' '.split(' '),
ANNOUNCE_CHANNEL='#p2pool-alt',
VERSION_CHECK=lambda v: v >= 60004,
),
and also this one at bitcoin folder.
worldcoin=math.Object(
P2P_PREFIX='aef904f3'.decode('hex'),
P2P_PORT=7777,
ADDRESS_VERSION=73,
RPC_PORT=11082,
RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
'worldcoinaddress' in (yield bitcoind.rpc_help()) and
not (yield bitcoind.rpc_getinfo())['testnet']
)),
SUBSIDY_FUNC=lambda target: get_subsidy(6, 100, target),
BLOCKHASH_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)),
POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)),
BLOCK_PERIOD=600, # s
SYMBOL='NVC',
CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'Worldcoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/worldcoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.worldcoin'), 'worldcoin.conf'),
BLOCK_EXPLORER_URL_PREFIX='',
ADDRESS_EXPLORER_URL_PREFIX='',
SANE_TARGET_RANGE=(2**256//2**20//1000 - 1, 2**256//2**20 - 1),
),
worldcoin_testnet=math.Object(
P2P_PREFIX='abc3f0db'.decode('hex'),
P2P_PORT=17777,
ADDRESS_VERSION=111,
RPC_PORT=11082,
RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
'worldcoinadress' in (yield bitcoind.rpc_help()) and
(yield bitcoind.rpc_getinfo())['testnet']
)),
SUBSIDY_FUNC=lambda target: get_subsidy(6, 100, target),
BLOCKHASH_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)),
POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)),
BLOCK_PERIOD=600, # s
SYMBOL='tNVC',
CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'Novacoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/NovaCoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.worldcoin'), 'worldcoin.conf'),
BLOCK_EXPLORER_URL_PREFIX='',
ADDRESS_EXPLORER_URL_PREFIX='',
SANE_TARGET_RANGE=(2**256//1000000000 - 1, 2**256//1000 - 1),
),
now i am trying to run
python run_p2pool.py help
and i get that error
File "run_p2pool.py", line 5, in
main.run()
File "/root/p2pool/p2pool/main.py", line 446, in run
net = networks.nets[net_name]
KeyError: 'bitbar'
any ideas on that ?