P2Pool Setup help

What sort of pool do you mine into?

  • None, I'm still solo mining!

    Votes: 0 0.0%

  • Total voters
    29

HammerHedd

Member
Mar 10, 2014
182
34
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.
 

Propulsion

The buck stops here.
Feb 26, 2014
1,008
468
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.
 

HammerHedd

Member
Mar 10, 2014
182
34
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?
 

vertoe

Three of Nine
Mar 28, 2014
2,573
1,652
1,283
Unimatrix Zero One
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, :)
 

HammerHedd

Member
Mar 10, 2014
182
34
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. :)
 

vertoe

Three of Nine
Mar 28, 2014
2,573
1,652
1,283
Unimatrix Zero One

vertoe

Three of Nine
Mar 28, 2014
2,573
1,652
1,283
Unimatrix Zero One
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.
 

chaeplin

Active Member
Core Developer
Mar 29, 2014
749
356
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.
 

coffeeblack

New Member
Apr 13, 2014
3
0
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
 

HammerHedd

Member
Mar 10, 2014
182
34
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.
 

Propulsion

The buck stops here.
Feb 26, 2014
1,008
468
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?
 

chaeplin

Active Member
Core Developer
Mar 29, 2014
749
356
133
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?
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
 
Last edited by a moderator:

Propulsion

The buck stops here.
Feb 26, 2014
1,008
468
183
Dash Address
XerHCGryyfZttUc6mnuRY3FNJzU1Jm9u5L
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
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
 

chaeplin

Active Member
Core Developer
Mar 29, 2014
749
356
133
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


Requirements:

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

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

Propulsion

The buck stops here.
Feb 26, 2014
1,008
468
183
Dash Address
XerHCGryyfZttUc6mnuRY3FNJzU1Jm9u5L
Requirements:
Generic:
  • Python >=2.6
  • Twisted >=10.0.0

  • sudo apt-get install python-zope.interface python-twisted python-twisted-web
All of them newest version. :confused:

Edit:
I have Python 2.6.6
& python-twisted 10.1.0-3
 
Last edited by a moderator:

Propulsion

The buck stops here.
Feb 26, 2014
1,008
468
183
Dash Address
XerHCGryyfZttUc6mnuRY3FNJzU1Jm9u5L
as stated here https://github.com/forrestv/p2pool/issues/126
try to update twistd
twistd --version
twistd (the Twisted daemon) 11.1.0

twistd --version
twistd (the Twisted daemon) 12.3.0
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.
 

chaeplin

Active Member
Core Developer
Mar 29, 2014
749
356
133
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.
That's 6 months ago.

Perhaps forrestv didn't check exact Twisted version.

libboost used for subsidy function.
 
Last edited by a moderator:

chaeplin

Active Member
Core Developer
Mar 29, 2014
749
356
133
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.
Code:
dpkg -l python-twisted

python-twisted 10.0.0-3
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