Author

Topic: Any p2pool modification tutorial/help for altcoins? (Read 2964 times)

member
Activity: 112
Merit: 10
Does the p2pool for alt coin change the donation address? I am wondering that the original donation address only works for BTC, right?
Do we need to change the donation address to a new correct address for new coin?
Any comments on this? Thanks a lot.

you don't need to change anything, p2pool sends fees and donations percents using a pub key, so it works with other currencies as well.
member
Activity: 98
Merit: 10
Does the p2pool for alt coin change the donation address? I am wondering that the original donation address only works for BTC, right?
Do we need to change the donation address to a new correct address for new coin?
Any comments on this? Thanks a lot.
sr. member
Activity: 350
Merit: 250
if you could even share your code and tell us what you had to change, that would be awesome!
sr. member
Activity: 350
Merit: 250
Did you solve the problem? Can you share a results please?
member
Activity: 112
Merit: 10
rbdrbd, i was able to find out some:

this should be like this or close to this... dunno what is that on j980, from what?

 SUBSIDY_FUNC=lambda height: 50*100000000 >> (height + 1)//210000,


50 = coin amouth
100000000 = no idea
>> (height + 1) = no idea
210000 = point where coin will split (halved)

like this "The number of Bitcoins generated per block starts at 50 and is halved every 210,000 blocks"

feathercoin, terracoin, litecoin, all they have own and info and is there. but bitbar no information about this! no google no docs found..

take a look on this https://github.com/andreasfaerber/p2pool-feathercoin/blob/master/p2pool/bitcoin/networks.py
this p2pool has all networks in it. so there can do comparasions between networks.

i think im going to sleep Cheesy too much sitting on computer lol 4am here Cheesy
hero member
Activity: 686
Merit: 500
Whoa, there are a lot of cats in this wall.
Anxiously waiting for this to get running.  I found a total of 78 blocks since starting to mine, but haven't found a block now in nearly 3 hours at 6,000kh/s
sr. member
Activity: 462
Merit: 250
2 bitbars as a reward to whoever helps me get this working.....real close.
sr. member
Activity: 462
Merit: 250
Able to get p2pool started, but accepts/rejects on the miner go up WAY too fast, and bitbard shows a number of these errors:

Code:
ERROR: CheckProofOfWork() : hash doesn't match nBits
ERROR: CheckBlock() : proof of work failed
ERROR: ProcessBlock() : CheckBlock FAILED
sr. member
Activity: 462
Merit: 250
Quote
I'm confused what I use for the IDENTIFER and P2P_IDENTIFIER values in networks.py, etc

From what i understand, it is the identifer for p2pool to talk to other p2pool. So this can be whatever you like. Just do some small changes on it.



Thanks, getting closer. Would you have an idea what to use for the following 3 things?:

        SUBSIDY_FUNC=lambda target: get_subsidy(6, 100, target),

        BLOCK_PERIOD=600, # s

        SANE_TARGET_RANGE=(2**256//2**20//1000 - 1, 2**256//2**20 - 1),


I looked at what CHNCoin had set for theirs (from a post that you made) and these were all tweaked. Most likely need to be tweaked for bitbar as well. I know we probably need to do something about SUBSIDY_FUNC.

And then, also verifying that the following are ok for bitbar (from p2pool/networks):

        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
        MIN_TARGET=0,
        MAX_TARGET=2**256//2**20 - 1,

I tried looking through the bitbar source but I'm not sure which ones of these have a match over there, and which ones are p2ppool things (a few simple "grep -R"s didn't help out much).
hero member
Activity: 602
Merit: 500
Quote
I'm confused what I use for the IDENTIFER and P2P_IDENTIFIER values in networks.py, etc

From what i understand, it is the identifer for p2pool to talk to other p2pool. So this can be whatever you like. Just do some small changes on it.

sr. member
Activity: 462
Merit: 250
Hey guys,

I'm a software developer that is trying to modify p2pool to work with an altcoin (BitBar, see https://github.com/aLQ/bitbar ...this is a fork of Novacoin itself). Another member of the community and I have made some modifications (see https://bitcointalksearch.org/topic/need-p2pool-for-bitbar-any-p2pool-gods-193669 ...we did get some love, but not 100% there yet), but are still not getting any love. Is there any tutorial for getting p2pool to work with different coins? Specifically, I'm confused what I use for the IDENTIFER and P2P_IDENTIFIER values in networks.py, etc.

Here's where we were able to get to: https://github.com/j980/p2pool/commits/master

We can get things running, but it seems that found blocks don't make it back out to the network for confirmation?

Thanks for ANY assistance!

-Robby
Jump to: