Bitcoin Forum
May 09, 2024, 09:51:10 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Any p2pool modification tutorial/help for altcoins?  (Read 2964 times)
rbdrbd (OP)
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250



View Profile
May 03, 2013, 03:42:09 PM
 #1

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
1715291470
Hero Member
*
Offline Offline

Posts: 1715291470

View Profile Personal Message (Offline)

Ignore
1715291470
Reply with quote  #2

1715291470
Report to moderator
1715291470
Hero Member
*
Offline Offline

Posts: 1715291470

View Profile Personal Message (Offline)

Ignore
1715291470
Reply with quote  #2

1715291470
Report to moderator
The grue lurks in the darkest places of the earth. Its favorite diet is adventurers, but its insatiable appetite is tempered by its fear of light. No grue has ever been seen by the light of day, and few have survived its fearsome jaws to tell the tale.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715291470
Hero Member
*
Offline Offline

Posts: 1715291470

View Profile Personal Message (Offline)

Ignore
1715291470
Reply with quote  #2

1715291470
Report to moderator
1715291470
Hero Member
*
Offline Offline

Posts: 1715291470

View Profile Personal Message (Offline)

Ignore
1715291470
Reply with quote  #2

1715291470
Report to moderator
blastbob
Hero Member
*****
Offline Offline

Activity: 602
Merit: 500



View Profile
May 03, 2013, 08:00:07 PM
 #2

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.


Bitrated user: blastbob.
rbdrbd (OP)
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250



View Profile
May 03, 2013, 11:21:23 PM
 #3

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).
rbdrbd (OP)
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250



View Profile
May 03, 2013, 11:35:51 PM
 #4

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
rbdrbd (OP)
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250



View Profile
May 03, 2013, 11:45:53 PM
 #5

2 bitbars as a reward to whoever helps me get this working.....real close.
Nolo
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500


Whoa, there are a lot of cats in this wall.


View Profile
May 04, 2013, 12:20:19 AM
 #6

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

Charlie Kelly: I'm pleading the 5th.  The Attorney: I would advise you do that.  Charlie Kelly: I'll take that advice under cooperation, alright? Now, let's say you and I go toe-to-toe on bird law and see who comes out the victor?  The Attorney: You know, I don't think I'm going to do anything close to that and I can clearly see you know nothing about the law.
19GpqFsNGP8jS941YYZZjmCSrHwvX3QjiC
riku2015
Member
**
Offline Offline

Activity: 112
Merit: 10



View Profile
May 04, 2013, 12:57:50 AM
 #7

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
ondratra
Sr. Member
****
Offline Offline

Activity: 350
Merit: 250



View Profile
May 15, 2013, 11:06:42 PM
 #8

Did you solve the problem? Can you share a results please?
ondratra
Sr. Member
****
Offline Offline

Activity: 350
Merit: 250



View Profile
May 15, 2013, 11:23:15 PM
 #9

if you could even share your code and tell us what you had to change, that would be awesome!
esuncloud
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
July 28, 2013, 04:29:38 AM
 #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.
bitcoinreactor
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
July 28, 2013, 04:45:54 AM
 #11

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.

BTC: 17CHqn3XE3Waf7Qfkm9p2MQE1VgB8gVbG4
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!