Post
Topic
Board Mining (Altcoins)
Re: Finding p2pool networks.py values for new altcoins
by
whitedragon
on 14/06/2013, 03:00:12 UTC
no idea... i found the problem with that .... it wants that in linux .conf file

ipcallowip=127.0.0.1
not
rpcconnect=127.0.0.1

now i am getting a huge nubmer or errors that i can't find... i make everything like i do to most coin pools. that means:

i find the address for PUBLIC ADDRESS from base58.h
i find height or something like that from  nSubsidy >>= (nHeight / 8400000); from main.cpp
i change the port and rpc port at networks.py
i change the worker port and the other port that connect the pools.
i delete the IDENTIFY AND PREFIX i leave them like that (don't couse me any problems for solo pools)
Code:
IDENTIFIER=''.decode('hex'),
        PREFIX=''.decode('hex'),

i change the helper.py with or 'netowrkname' like this

Code:
if 'lite' in net.NAME or 'feather' in net.NAME or 'chn' in net.NAME or 'franko' in net.NAME or 'digital' in net.NAME or 'worldcoin' in net.NAME:

what else. and i run with python. (i create the screen first)

but then let's say for fastcoin i get like 2 pages errors .....

i also hav no idea what this is

Code:
CHAIN_LENGTH=24*60*60//10, # shares
REAL_CHAIN_LENGTH=24*60*60//10, # shares
SHARE_PERIOD=10, # seconds

and on the other networks.py this one and how i can translate it

Code:
P2P_PREFIX='f9beb4d9'.decode('hex'),



The P2P_PREFIX was explained by Kyune here:



I think I may have figured this out.  I had been bumping into the same problem (stalling at the P2P connection) on some coins but not others.  I finally realized I was wrong in an initial assumption...the P2P_PREFIX setting in bitcoin/networks.py is in fact a coin-specific setting -- which is logical, as the other settings in that file are coin-specific as well.   In fact, it looks like it is basically the "magic value" or "magic number" referred to in https://en.bitcoin.it/wiki/Protocol_specification, and after poking around in the code I think you can find it in main.cpp at pchMessageStart[4]=...  Using this specific value as the P2P_PREFIX fixed the problem for me.

So, for example, I haven't ever installed Dragoncoin myself, but looking quickly at the relevant line in main.cpp:

Code:
unsigned char pchMessageStart[4] = { 0xfc, 0xd9, 0xb7, 0xdd };

Thus, for Dragoncoin, try setting

Code:
P2P_PREFIX='fcd9b7dd'.decode('hex'),

and let us know if that gets you past stalling at the P2P connection.

Hope this is helpful.


I can't really help with the chain length as it is confusing to me too.