Welcome to the Dash Forum!

Please sign up to discuss the most innovative cryptocurrency!

P2Pool Setup help

Discussion in 'Mining Pools' started by HammerHedd, Mar 27, 2014.

?

What sort of pool do you mine into?

  1. None, I'm still solo mining!

    0 vote(s)
    0.0%
  2. MPOS (i.e. Official Pool, Lottery Mining, Coinmine)

    27.6%
  3. P2Pool

    72.4%
  1. HammerHedd

    HammerHedd Member

    Joined:
    Mar 10, 2014
    Messages:
    182
    Likes Received:
    34
    Trophy Points:
    88
    As more and more people come over to Darkcoin, presumably more and more people will want to set up a pool of come sort. P2Pool is really easy to set up, but there are some glitches.

    I learned a lot about setting it up from Chaeplin, who ported P2Pool to Darkcoin. Unfortunately for the search engines, most of it was in PMs, as the Darkcoin announce thread is already a raging river.

    So, I'm starting this thread to help out anyone who is having difficulties with P2Pool. I'll try to get chaeplin over here as well, as he knows far more than I do about it. Also, I hope those of us running a P2Pool can use this as a forum for discussing new additions, etc.
     
  2. Propulsion

    Propulsion The buck stops here.

    Joined:
    Feb 26, 2014
    Messages:
    1,008
    Likes Received:
    467
    Trophy Points:
    183
    Dash Address:
    XerHCGryyfZttUc6mnuRY3FNJzU1Jm9u5L
    Because I do not have a dedicated miner I more often then not use a MPOS pool.
    If I ever purchase one, I'll be using P2Pool. Reason I don't now is because of the 24 hour build up.

    P2Pool is great though because you theoretically get payed more then a MPOS pool. (P2Pool receives transaction fees) As well as never having to pay a withdraw fee or worry about a website's front end going down.
    All in all if you have a dedicated miner you really are hurting yourself if your not using P2Pool.
     
  3. vertoe

    vertoe Three of Nine

    Joined:
    Mar 28, 2014
    Messages:
    2,574
    Likes Received:
    1,656
    Trophy Points:
    1,283
  4. n00b_miner

    n00b_miner New Member

    Joined:
    Mar 14, 2014
    Messages:
    17
    Likes Received:
    2
    Trophy Points:
    3
    Great idea. I'll also put forward some help - I run all the pools at p2pool.n00bsys0p.co.uk, and it's given me a lot of experience very fast!
     
  5. HammerHedd

    HammerHedd Member

    Joined:
    Mar 10, 2014
    Messages:
    182
    Likes Received:
    34
    Trophy Points:
    88
    Awesome! Here's something strange that I found out recently:
    I ran darkcoind with daemon=1 and P2Pool wouldn't transmit pool fees - when I took it out of the darkcoin.conf, the pool fees transmitted again. Anyone else have this happen?
     
  6. vertoe

    vertoe Three of Nine

    Joined:
    Mar 28, 2014
    Messages:
    2,574
    Likes Received:
    1,656
    Trophy Points:
    1,283
    Can you be more specific? What do you mean by transmitted? You did not recieve any fees?

    Recieving fees is as random as finding blocks in p2pool that's why sometimes you might not get any at all. Every share on your node will be submitted to the sharechain. If your pool fee is 1%, then the chance for each share is 1% to get credited to the node wallet instead of the finders account.

    It's all about luck, :)
     
  7. HammerHedd

    HammerHedd Member

    Joined:
    Mar 10, 2014
    Messages:
    182
    Likes Received:
    34
    Trophy Points:
    88
    I realize that... However, each time a block is found, a p2pool operator would get a fee (mine was set at 0.5%). The strange thing that happened was that although it was showing that the pool collected a 0.5% fee, it would not send the fees collected to the specified address. The address was showing correctly on the stats page, but showed 0 collected per block. After messing with it a bit, and working with chaeplin, we figured out that for some reason having
    Code:
    daemon=1
    
    in the darkcoin.conf file caused it to not send the accumulated transactions. I haven't played with it again to see if I can make it fail, but I was curious if anyone else had that experience.

    Also, I'm not sure I follow what you are saying about the pool percentage. As I understand it, a pool takes a set percentage from each miner when there is a block found. The chance is in the block being found, not in whether or not the pool takes the percentage. Or perhaps I'm just reading it wrong. :)
     
  8. vertoe

    vertoe Three of Nine

    Joined:
    Mar 28, 2014
    Messages:
    2,574
    Likes Received:
    1,656
    Trophy Points:
    1,283
    No, its not. It's like I said, see this: https://github.com/forrestv/p2pool/issues/159#issuecomment-33346993
     
  9. HammerHedd

    HammerHedd Member

    Joined:
    Mar 10, 2014
    Messages:
    182
    Likes Received:
    34
    Trophy Points:
    88
    Ha! I'm glad I stated this thread, then. I've learned something new. What a fascinating way to do it! So p2pool really doesn't have fees, per se - it's a whole different method of calculating it. That's probably something that could be better explained to the average miner (and some operators!)
     
  10. vertoe

    vertoe Three of Nine

    Joined:
    Mar 28, 2014
    Messages:
    2,574
    Likes Received:
    1,656
    Trophy Points:
    1,283
    I've been mining and operating P2Pool for so long now and you only get the interesting infos if you either read the source code or talk to some very enthusiastic devs.

    I found out about the fees because one of my nodes didnt pay any fees to my wallet and I thought it was a bug... well it was just bad luck.
     
  11. chaeplin

    chaeplin Active Member
    Core Developer

    Joined:
    Mar 29, 2014
    Messages:
    749
    Likes Received:
    356
    Trophy Points:
    133
    Fee charged like this.
    P2pool change worker summited address to fee payout address.
    So it's luck.
    That's how fee payout address is included in to share chain.

    This is my miner pointed to 100% fee solo node.
    Connected to Pool 0 (stratum) diff 0.004 as user Xhw8EQDdK4ogGFre677vgh4RYkocLafQPp+0.004
    XkJN5nvmVshdyC8dAK5tfbt3qerQfAXhwR is fee payout address.

    This is solo node log.
    2014-04-01 06:34:28.064297 GOT SHARE! Xhw8EQDdK4ogGFre677vgh4RYkocLafQPp 61a33535 prev acc99528 age 6.72s
    2014-04-01 06:34:28.066822 New work for worker XkJN5nvmVshdyC8dAK5tfbt3qerQfAXhwR! Difficulty: 0.004000 Share difficulty: 0.013203 (speed 3464161.507686) Total block value: 16.000000 DRK including 0 transactions
    2014-04-01 06:34:29.192579 P2Pool: 638 shares in chain (638 verified/638 total) Peers: 0 (0 incoming)

    Worker submit with address Xhw8EQDdK4ogGFre677vgh4RYkocLafQPp.
    Work is distributed to XkJN5nvmVshdyC8dAK5tfbt3qerQfAXhwR which is fee payout address.


    This is 50% fee solo log.
    2014-04-01 06:37:30.137959 GOT SHARE! Xhw8EQDdK4ogGFre677vgh4RYkocLafQPp 10821ee2 prev 350a9d44 age 16.11s
    2014-04-01 06:37:30.140664 New work for worker XkJN5nvmVshdyC8dAK5tfbt3qerQfAXhwR! Difficulty: 0.004000 Share difficulty: 0.012953 (speed 0.000000) Total block value: 17.001000 DRK including 3 transactions
    2014-04-01 06:37:32.956810 P2Pool: 643 shares in chain (643 verified/643 total) Peers: 0 (0 incoming)
    2014-04-01 06:37:50.724485 GOT SHARE! Xhw8EQDdK4ogGFre677vgh4RYkocLafQPp b71c3eec prev 10821ee2 age 20.58s
    2014-04-01 06:37:50.727351 New work for worker Xhw8EQDdK4ogGFre677vgh4RYkocLafQPp! Difficulty: 0.004000 Share difficulty: 0.012850 (speed 0.000000) Total block value: 17.001000 DRK including 3 transactions
    2014-04-01 06:38:02.980376 GOT SHARE! Xhw8EQDdK4ogGFre677vgh4RYkocLafQPp caeaf091 prev b71c3eec age 12.25s
    2014-04-01 06:38:02.982981 New work for worker XkJN5nvmVshdyC8dAK5tfbt3qerQfAXhwR! Difficulty: 0.004000 Share difficulty: 0.012823 (speed 2788415.037397) Total block value: 17.001000 DRK including 3 transactions

    Address changed.

    p2pool use this method to collect fee.
     
  12. coffeeblack

    coffeeblack New Member

    Joined:
    Apr 13, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I'm getting nothing but stale/orphaned shares on my p2pool node. What darkcoind version are people running? I've reverted to many of the latest commits and still not any closer to solving this. Ubuntu 12.04 all ports forwarded correctly
     
  13. HammerHedd

    HammerHedd Member

    Joined:
    Mar 10, 2014
    Messages:
    182
    Likes Received:
    34
    Trophy Points:
    88
    Are you running a 32-bit OS? I did that, and it wrecked me.
    Type
    Code:
    uname -a
    
    And see what you get. If it doesn't say "x64", it might be because you have a 32 bit system.
     
  14. coffeeblack

    coffeeblack New Member

    Joined:
    Apr 13, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    32bit
    I'll give 64bit a go
     
  15. coffeeblack

    coffeeblack New Member

    Joined:
    Apr 13, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    EDIT: Nevermind, 64bit seems to have fixed it
     
    #15 coffeeblack, Apr 13, 2014
    Last edited by a moderator: Apr 13, 2014
  16. Propulsion

    Propulsion The buck stops here.

    Joined:
    Feb 26, 2014
    Messages:
    1,008
    Likes Received:
    467
    Trophy Points:
    183
    Dash Address:
    XerHCGryyfZttUc6mnuRY3FNJzU1Jm9u5L
    Here's a question. I'm compiling on Debian Squeeze. Wallet set up and fine. Going for the p2pool software.
    Code:
    gcc: readline/libreadline.a: No such file or directory
    gcc: readline/libhistory.a: No such file or directory
    error: Setup script exited with error: command 'gcc' failed with exit status 1
    It seems like the most current libboost I can getis libboost1.42-all-dev.

    Any Recommendations?
     
  17. chaeplin

    chaeplin Active Member
    Core Developer

    Joined:
    Mar 29, 2014
    Messages:
    749
    Likes Received:
    356
    Trophy Points:
    133
    do not run make !!

    run "python run_p2pool.py --help"
    to check environment.
    If it shows "usage ~~~ "
    You are ready.

    Compile subsidy and hash module.


    and check run_darkpool.sh
     
    #17 chaeplin, Apr 15, 2014
    Last edited by a moderator: Apr 15, 2014
  18. Propulsion

    Propulsion The buck stops here.

    Joined:
    Feb 26, 2014
    Messages:
    1,008
    Likes Received:
    467
    Trophy Points:
    183
    Dash Address:
    XerHCGryyfZttUc6mnuRY3FNJzU1Jm9u5L
    Ok what i get returned is.

    Code:
    ~/p2pool-drk/p2pool/util/pack.py:205: Deprecation
    Warning: object._new_() takes no parameters
    return Type._new_(cls, bits, endianness)
    Twisted doesn't have abortConnection! Upgrade to a newer version of Twisted to avoid memory leaks!
    Also when i do
    Code:
    sudo apt-cache search libboost
    
    Newest one returned seems to be 1.42
     
  19. chaeplin

    chaeplin Active Member
    Core Developer

    Joined:
    Mar 29, 2014
    Messages:
    749
    Likes Received:
    356
    Trophy Points:
    133


    Requirements:

    Generic:
    • Python >=2.6
    • Twisted >=10.0.0

    • sudo apt-get install python-zope.interface python-twisted python-twisted-web
     
  20. Propulsion

    Propulsion The buck stops here.

    Joined:
    Feb 26, 2014
    Messages:
    1,008
    Likes Received:
    467
    Trophy Points:
    183
    Dash Address:
    XerHCGryyfZttUc6mnuRY3FNJzU1Jm9u5L
    All of them newest version. :confused:

    Edit:
    I have Python 2.6.6
    & python-twisted 10.1.0-3
     
    #20 Propulsion, Apr 15, 2014
    Last edited by a moderator: Apr 15, 2014
  21. chaeplin

    chaeplin Active Member
    Core Developer

    Joined:
    Mar 29, 2014
    Messages:
    749
    Likes Received:
    356
    Trophy Points:
    133
  22. Propulsion

    Propulsion The buck stops here.

    Joined:
    Feb 26, 2014
    Messages:
    1,008
    Likes Received:
    467
    Trophy Points:
    183
    Dash Address:
    XerHCGryyfZttUc6mnuRY3FNJzU1Jm9u5L
  23. chaeplin

    chaeplin Active Member
    Core Developer

    Joined:
    Mar 29, 2014
    Messages:
    749
    Likes Received:
    356
    Trophy Points:
    133
    try this
    • sudo apt-get install python-argparse # if on Python 2.6
     
  24. Propulsion

    Propulsion The buck stops here.

    Joined:
    Feb 26, 2014
    Messages:
    1,008
    Likes Received:
    467
    Trophy Points:
    183
    Dash Address:
    XerHCGryyfZttUc6mnuRY3FNJzU1Jm9u5L
    python-argparse is already the newest version.

    python-argpars 1.1-1
     
  25. chaeplin

    chaeplin Active Member
    Core Developer

    Joined:
    Mar 29, 2014
    Messages:
    749
    Likes Received:
    356
    Trophy Points:
    133
    #25 chaeplin, Apr 15, 2014
    Last edited by a moderator: Apr 15, 2014
  26. Propulsion

    Propulsion The buck stops here.

    Joined:
    Feb 26, 2014
    Messages:
    1,008
    Likes Received:
    467
    Trophy Points:
    183
    Dash Address:
    XerHCGryyfZttUc6mnuRY3FNJzU1Jm9u5L
    That says equal or above >= 10.0.0
    My version is 10.1.0

    The person in the link was running 8.2.0

    I think its because I only have libboost1.42-all-dev and not libboost 1.48-all-dev.
     
  27. chaeplin

    chaeplin Active Member
    Core Developer

    Joined:
    Mar 29, 2014
    Messages:
    749
    Likes Received:
    356
    Trophy Points:
    133
    That's 6 months ago.

    Perhaps forrestv didn't check exact Twisted version.

    libboost used for subsidy function.
     
    #27 chaeplin, Apr 15, 2014
    Last edited by a moderator: Apr 15, 2014
  28. chaeplin

    chaeplin Active Member
    Core Developer

    Joined:
    Mar 29, 2014
    Messages:
    749
    Likes Received:
    356
    Trophy Points:
    133
    You have 10.0.0.

    deferred cancellation is in 10.1.0

    https://twistedmatrix.com/documents/10.0.0/api/twisted.internet.defer.Deferred.html
    https://twistedmatrix.com/documents/10.1.0/api/twisted.internet.defer.Deferred.html#cancel
     
  29. Propulsion

    Propulsion The buck stops here.

    Joined:
    Feb 26, 2014
    Messages:
    1,008
    Likes Received:
    467
    Trophy Points:
    183
    Dash Address:
    XerHCGryyfZttUc6mnuRY3FNJzU1Jm9u5L
  30. chaeplin

    chaeplin Active Member
    Core Developer

    Joined:
    Mar 29, 2014
    Messages:
    749
    Likes Received:
    356
    Trophy Points:
    133