Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: rbdrbd on May 03, 2013, 03:42:09 PM



Title: Any p2pool modification tutorial/help for altcoins?
Post by: rbdrbd on May 03, 2013, 03:42:09 PM
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://bitcointalk.org/index.php?topic=193669.0 ...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


Title: Re: Any p2pool modification tutorial/help for altcoins?
Post by: blastbob on May 03, 2013, 08:00:07 PM
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.



Title: Re: Any p2pool modification tutorial/help for altcoins?
Post by: rbdrbd on May 03, 2013, 11:21:23 PM
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).


Title: Re: Any p2pool modification tutorial/help for altcoins?
Post by: rbdrbd on May 03, 2013, 11:35:51 PM
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


Title: Re: Any p2pool modification tutorial/help for altcoins?
Post by: rbdrbd on May 03, 2013, 11:45:53 PM
2 bitbars as a reward to whoever helps me get this working.....real close.


Title: Re: Any p2pool modification tutorial/help for altcoins?
Post by: Nolo on May 04, 2013, 12:20:19 AM
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


Title: Re: Any p2pool modification tutorial/help for altcoins?
Post by: riku2015 on May 04, 2013, 12:57:50 AM
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 :D too much sitting on computer lol 4am here :D


Title: Re: Any p2pool modification tutorial/help for altcoins?
Post by: ondratra on May 15, 2013, 11:06:42 PM
Did you solve the problem? Can you share a results please?


Title: Re: Any p2pool modification tutorial/help for altcoins?
Post by: ondratra on May 15, 2013, 11:23:15 PM
if you could even share your code and tell us what you had to change, that would be awesome!


Title: Re: Any p2pool modification tutorial/help for altcoins?
Post by: esuncloud on July 28, 2013, 04:29:38 AM
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.


Title: Re: Any p2pool modification tutorial/help for altcoins?
Post by: bitcoinreactor on July 28, 2013, 04:45:54 AM
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.