Author

Topic: [1500 TH] p2pool: Decentralized, DoS-resistant, Hop-Proof pool - page 582. (Read 2591920 times)

sr. member
Activity: 477
Merit: 500
Hi!

How is this supposed to work? I do not understand how it could have been implemented. Also, it does not seem to work on litecoin p2pool.

  -f FEE_PERCENTAGE, --fee FEE_PERCENTAGE
                        charge workers mining to their own bitcoin address (by
                        setting their miner's username to a bitcoin address)
                        this percentage fee to mine on your p2pool instance.
                        Amount displayed at http://127.0.0.1:WORKER_PORT/fee
                        (default: 0)
hero member
Activity: 737
Merit: 500
As I mentioned in a previous post, http://p2pool.info is a web app that is hosted in the cloud, but it depends on bitcoind and p2pool servers running in the basement of my home.  That means when I have power or internet disruptions at home, the site stops being accurate.

I have been working on making the web app independent of my home's servers and I'm nearly done.  It now finds blocks exclusively by using the blockchain.info APIs instead of a bitcoind server in my house.  The last part of my work is to make it not depend on the p2pool server in my house either... 

There is an old thread here that lists public p2pool servers, but it is so old that I don't trust it.  Does anyone still run a public p2pool server that they intend to keep around?  Ideally, I'd like a list of 3+ of them so that p2pool.info wouldn't be dependent on any p2pool server.  All that p2pool.info uses the p2pool API for is to get the pool hashrate, user list, and payout list once every 5 minutes, so the traffic to your server would be very light and largely insignificant.

If you have a server that you'd be willing to let p2pool.info use, please let me know here or via PM.
sr. member
Activity: 477
Merit: 500
Gotcha. but no hint on the litecoin debug log. Doi i have the correct litecoin version, ie is the version displayed in litecoin wrong?:
Code:
ThreadRPCServer method=submitblock
CreateNewBlock(): total size 1225
ThreadRPCServer method=getblock
getheaders 315427 to e9a6aa3cc3b3e18ba8cf
Flushed 10151 addresses to peers.dat  137ms
ThreadRPCServer method=submitblock
IRC got join
getheaders 315427 to e9a6aa3cc3b3e18ba8cf
ThreadRPCServer method=submitblock
CTxMemPool::accept() : accepted db4adf77ae (poolsz 3)
received getdata for: tx db4adf77ae346e8cdacf
ThreadRPCServer method=submitblock
IRC got join
CreateNewBlock(): total size 1417
getheaders 315427 to e9a6aa3cc3b3e18ba8cf
ThreadRPCServer method=submitblock

in p2pool:
Code:
2013-03-16 11:09:35.479095 P2Pool: 17330 shares in chain (12475 verified/17334 total) Peers: 7 (0 incoming)
2013-03-16 11:09:35.480450  Local: 135kH/s in last 8.8 minutes Local dead on arrival: ~4.7% (3-7%) Expected time to share: 1.7 hours
2013-03-16 11:09:35.480508  Shares: 0 (0 orphan, 0 dead) Stale rate: ??? Efficiency: ??? Current payout: 0.0000 LTC
2013-03-16 11:09:35.480560  Pool: 108MH/s Stale rate: 16.3% Expected time to block: 55.7 minutes
2013-03-16 11:09:35.596987 > Error submitting block: (will retry)
2013-03-16 11:09:35.597195 > Traceback (most recent call last):
2013-03-16 11:09:35.597310 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 545, in _runCallbacks
2013-03-16 11:09:35.597415 >     current.result = callback(current.result, *args, **kw)
2013-03-16 11:09:35.597514 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1095, in gotResult
2013-03-16 11:09:35.597634 >     _inlineCallbacks(r, g, deferred)
2013-03-16 11:09:35.597734 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
2013-03-16 11:09:35.597834 >     result = result.throwExceptionIntoGenerator(g)
2013-03-16 11:09:35.597936 >   File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2013-03-16 11:09:35.598038 >     return g.throw(self.type, self.value, self.tb)
2013-03-16 11:09:35.598135 > --- ---

also this

Code:
2013-03-16 11:09:44.513278  Local: 134kH/s in last 8.9 minutes Local dead on arrival: ~4.7% (3-7%) Expected time to share: 1.8 hours
2013-03-16 11:09:44.513396  Shares: 0 (0 orphan, 0 dead) Stale rate: ??? Efficiency: ??? Current payout: 0.0000 LTC
2013-03-16 11:09:44.513516  Pool: 107MH/s Stale rate: 16.3% Expected time to block: 55.9 minutes
2013-03-16 11:09:45.610197 > Unhandled error in Deferred:
2013-03-16 11:09:45.610717 > Unhandled Error
2013-03-16 11:09:45.610842 > Traceback (most recent call last):
2013-03-16 11:09:45.610952 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 391, in errback
2013-03-16 11:09:45.611056 >     self._startRunCallbacks(fail)
2013-03-16 11:09:45.611157 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 458, in _startRunCallbacks
2013-03-16 1


And immediately after it, i got a litecoin transfer to my wallet?

btw, timestamps on litecoin log would be nice..

Update: Yep, it happens every time p2pool finds a block. Happened with last two block 11.07 and 13.05 (UTC+2). BUT there is one more, and at that time p2pool did not solev a block. It happened at
Code:
2013-03-16 12:37:14.524647 > Error submitting block: (will retry)
Does that mean one p2pool solved block did not find it's way to litecoin blockchain?

Here is the block id (interesting.. that block might be worth a look):
Code:
2013-03-16 12:35:54.430120 GOT BLOCK FROM PEER! Passing to bitcoind! 1f88206f bitcoin: http://explorer.litecoin.net/block/47fc954d89fd61b218bc422d98213f1cd4cb7bfa5417b53f2f46bdce1f88206f


wow, while writing this, pool solves one. And again the problem. litecoin-qt log:

Code:
ThreadRPCServer method=submitblock
getheaders 315489 to c1901e4695a2e124a8f0
ThreadRPCServer method=submitblock
Flushed 10066 addresses to peers.dat  90ms
ThreadRPCServer method=submitblock
getheaders 315489 to c1901e4695a2e124a8f0
CTxMemPool::accept() : accepted a68e5470e8 (poolsz 1)
received getdata for: tx a68e5470e8d954882258
ThreadRPCServer method=submitblock
CTxMemPool::accept() : accepted 14e3f38dca (poolsz 2)
received getdata for: tx 14e3f38dcadbe43dc280
CreateNewBlock(): total size 2431
getheaders 315489 to c1901e4695a2e124a8f0
IRC got join
ThreadRPCServer method=submitblock
IRC got join
ThreadRPCServer method=submitblock
getheaders 315489 to c1901e4695a2e124a8f0
ThreadRPCServer method=submitblock
getheaders 315489 to c1901e4695a2e124a8f0
ThreadRPCServer method=submitblock
ThreadRPCServer method=submitblock
getheaders 315489 to c1901e4695a2e124a8f0
getheaders 315489 to c1901e4695a2e124a8f0


update: so there was a non-p2pool block on the p2pool network. One of these is not p2pool blocks.
Code:
xxx@xxxx:~/src/p2pool.11.2/p2pool-11.2$ grep "GOT BLOCK FROM PEER" p2pool.log
2013-03-16 11:08:05.433362 GOT BLOCK FROM PEER! Passing to bitcoind! aa006de6 bitcoin: http://explorer.litecoin.net/block/e9a6aa3cc3b3e18ba8cf43b4130ad5e5ee68169495deb62055157fa8aa006de6
2013-03-16 12:35:54.430120 GOT BLOCK FROM PEER! Passing to bitcoind! 1f88206f bitcoin: http://explorer.litecoin.net/block/47fc954d89fd61b218bc422d98213f1cd4cb7bfa5417b53f2f46bdce1f88206f
2013-03-16 13:05:59.656533 GOT BLOCK FROM PEER! Passing to bitcoind! 2ffe6ef9 bitcoin: http://explorer.litecoin.net/block/5297ae65f3807e6d184a8e8615121958ea8bb3a94d8d2f28decc8d672ffe6ef9
2013-03-16 13:26:35.128236 GOT BLOCK FROM PEER! Passing to bitcoind! 84cdf982 bitcoin: http://explorer.litecoin.net/block/5e91c97156381c3f7b52e26729947a82ff6afcb0c7fd86cba11141da84cdf982
legendary
Activity: 1361
Merit: 1003
Don`t panic! Organize!
Code:
2013-03-16 09:39:04.373335 > Error submitting block: (will retry)
...
2013-03-16 09:39:04.375917 >     raise Error_for_code(resp['error']['code'])(resp['error']['message'], resp['error'].get('data', None))
2013-03-16 09:39:04.376017 > p2pool.util.jsonrpc.NarrowError: -32601 Method not found
It clearly says, that daemon is not accepting submitted block (function is not known).
See debug.log form litecoind and log for p2pool in same time.
https://github.com/litecoin-project/litecoin/issues/23
sr. member
Activity: 477
Merit: 500
litecoin 0.6.3 is NOT a main tree branch.
Try download and compile it, I have no errors on it.

Ok, now running, but it says version is "v0.6.1-670-g7fd4c83-beta"

Edit: And soon (now officialp2pool 11.2). Looks like some incompatibility with python libraries?:
Code:
2013-03-16 09:39:02.500650 P2Pool: 17813 shares in chain (11935 verified/17817 total) Peers: 6 (0 incoming)
2013-03-16 09:39:02.500874  Local: 9010H/s in last 1.1 minutes Local dead on arrival: ~1.2% (0-5%) Expected time to share: 1.1 days
2013-03-16 09:39:02.500990  Shares: 0 (0 orphan, 0 dead) Stale rate: ??? Efficiency: ??? Current payout: 0.0000 LTC
2013-03-16 09:39:02.501111  Pool: 105MH/s Stale rate: 16.5% Expected time to block: 57.0 minutes
2013-03-16 09:39:04.373335 > Error submitting block: (will retry)
2013-03-16 09:39:04.373541 > Traceback (most recent call last):
2013-03-16 09:39:04.373660 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 545, in _runCallbacks
2013-03-16 09:39:04.373767 >     current.result = callback(current.result, *args, **kw)
2013-03-16 09:39:04.373871 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1095, in gotResult
2013-03-16 09:39:04.374002 >     _inlineCallbacks(r, g, deferred)
2013-03-16 09:39:04.374106 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
2013-03-16 09:39:04.374208 >     result = result.throwExceptionIntoGenerator(g)
2013-03-16 09:39:04.374310 >   File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2013-03-16 09:39:04.374414 >     return g.throw(self.type, self.value, self.tb)
2013-03-16 09:39:04.374528 > --- ---
2013-03-16 09:39:04.374628 >   File "/home/hko/src/p2pool.11.2/p2pool-11.2/p2pool/util/deferral.py", line 41, in f
2013-03-16 09:39:04.374726 >     result = yield func(*args, **kwargs)
2013-03-16 09:39:04.374825 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
2013-03-16 09:39:04.374925 >     result = result.throwExceptionIntoGenerator(g)
2013-03-16 09:39:04.375024 >   File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2013-03-16 09:39:04.375124 >     return g.throw(self.type, self.value, self.tb)
2013-03-16 09:39:04.375223 >   File "/home/hko/src/p2pool.11.2/p2pool-11.2/p2pool/bitcoin/helper.py", line 73, in submit_block_rpc
2013-03-16 09:39:04.375324 >     result = yield bitcoind.rpc_submitblock(bitcoin_data.block_type.pack(block).encode('hex'))
2013-03-16 09:39:04.375423 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
2013-03-16 09:39:04.375523 >     result = result.throwExceptionIntoGenerator(g)
2013-03-16 09:39:04.375621 >   File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2013-03-16 09:39:04.375720 >     return g.throw(self.type, self.value, self.tb)
2013-03-16 09:39:04.375818 >   File "/home/hko/src/p2pool.11.2/p2pool-11.2/p2pool/util/jsonrpc.py", line 133, in _http_do
2013-03-16 09:39:04.375917 >     raise Error_for_code(resp['error']['code'])(resp['error']['message'], resp['error'].get('data', None))
2013-03-16 09:39:04.376017 > p2pool.util.jsonrpc.NarrowError: -32601 Method not found
legendary
Activity: 1361
Merit: 1003
Don`t panic! Organize!
litecoin 0.6.3 is NOT a main tree branch.
Try download and compile it, I have no errors on it.
sr. member
Activity: 477
Merit: 500
Anyway, now running latest git p2pool, version is Version: 11.2-2-g77e7e2a. Seems to log a lot more..

Almost immediately:
grep -C 20 excep p2pool.log

Code:
2013-03-16 09:00:19.980302 Worker LeYwScvLCNV2HtcdbhttYRyiA68PkxeRSS submitted share with hash > target:
2013-03-16 09:00:19.980361     Hash:   691fba69db768b4dc92b90b5e6b7448a3f02dc59b6fb38499109b9fd96bc
2013-03-16 09:00:19.980473     Target: 60820325fdce4c0000000000000000000000000000000000000000000000
2013-03-16 09:00:22.420152 Worker LeYwScvLCNV2HtcdbhttYRyiA68PkxeRSS submitted share with hash > target:
2013-03-16 09:00:22.420423     Hash:   eaaff71caa97c74ea6d063c563021f68abb496ea931c31f93573238c1f82
2013-03-16 09:00:22.420559     Target: 60820325fdce4c0000000000000000000000000000000000000000000000
2013-03-16 09:00:22.976285 P2Pool: 17325 shares in chain (12480 verified/17329 total) Peers: 6 (0 incoming)
2013-03-16 09:00:22.976498  Local: 162kH/s in last 10.0 minutes Local dead on arrival: ~2.7% (1-5%) Expected time to share: 1.4 hours
2013-03-16 09:00:22.976597  Shares: 1 (1 orphan, 0 dead) Stale rate: ~100.0% (20-100%) Efficiency: ~0.0% (0-94%) Current payout: 0.0000 LTC
2013-03-16 09:00:22.976705  Pool: 96990kH/s Stale rate: 15.5% Expected time to block: 1.0 hours
2013-03-16 09:00:23.333739 > Error submitting block: (will retry)
2013-03-16 09:00:23.333921 > Traceback (most recent call last):
2013-03-16 09:00:23.334026 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 545, in _runCallbacks
2013-03-16 09:00:23.334122 >     current.result = callback(current.result, *args, **kw)
2013-03-16 09:00:23.334215 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1095, in gotResult
2013-03-16 09:00:23.334306 >     _inlineCallbacks(r, g, deferred)
2013-03-16 09:00:23.334396 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
2013-03-16 09:00:23.334487 >     result = result.throwExceptionIntoGenerator(g)
2013-03-16 09:00:23.334579 >   File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2013-03-16 09:00:23.334672 >     return g.throw(self.type, self.value, self.tb)
2013-03-16 09:00:23.334762 > --- ---
2013-03-16 09:00:23.334853 >   File "/home/hko/src/p2pool/p2pool/util/deferral.py", line 41, in f
2013-03-16 09:00:23.334943 >     result = yield func(*args, **kwargs)
2013-03-16 09:00:23.335033 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
2013-03-16 09:00:23.335122 >     result = result.throwExceptionIntoGenerator(g)
2013-03-16 09:00:23.335212 >   File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2013-03-16 09:00:23.335304 >     return g.throw(self.type, self.value, self.tb)
2013-03-16 09:00:23.335394 >   File "/home/hko/src/p2pool/p2pool/bitcoin/helper.py", line 73, in submit_block_rpc
2013-03-16 09:00:23.335485 >     result = yield bitcoind.rpc_submitblock(bitcoin_data.block_type.pack(block).encode('hex'))
2013-03-16 09:00:23.335598 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
2013-03-16 09:00:23.335690 >     result = result.throwExceptionIntoGenerator(g)
2013-03-16 09:00:23.335781 >   File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2013-03-16 09:00:23.335873 >     return g.throw(self.type, self.value, self.tb)
2013-03-16 09:00:23.335964 >   File "/home/hko/src/p2pool/p2pool/util/jsonrpc.py", line 133, in _http_do
2013-03-16 09:00:23.336055 >     raise Error_for_code(resp['error']['code'])(resp['error']['message'], resp['error'].get('data', None))
2013-03-16 09:00:23.336146 > p2pool.util.jsonrpc.NarrowError: -32601 Method not found
2013-03-16 09:00:23.439910 Worker LeYwScvLCNV2HtcdbhttYRyiA68PkxeRSS submitted share with hash > target:
2013-03-16 09:00:23.440137     Hash:   ae062f7ebd37721cfb1eaa911a1143d167ff6623b766a2bdafe53f06a2af
2013-03-16 09:00:23.440264     Target: 60820325fdce4c0000000000000000000000000000000000000000000000
2013-03-16 09:00:23.643866 Worker LeYwScvLCNV2HtcdbhttYRyiA68PkxeRSS submitted share with hash > target:
2013-03-16 09:00:23.644088     Hash:   9f6bf74d89b73085d539dad3a1a02b1143d9cf9f4aa59f62fefcfab1a289
sr. member
Activity: 477
Merit: 500
If this "method not found" error is just after you start node - ignore it.
If it shows up after few hrs of minig - something is wrong.
Try this git tree: https://github.com/litecoin-project/litecoin/tree/0.6.3



Well, I'm already running litecoin wallet from latest git. Is there specific version of p2pool for litecoin mining?

Anyway, now running latest git p2pool, version is Version: 11.2-2-g77e7e2a. Seems to log a lot more..

If you want to test it, try http://p2pool.cave.dy.fi:9327 As usual, your receiving wallet address as username with any password. This is just testing, so I cannot guarantee any uptime, have your backup pool ready.

Fee is 0.4 + 0.4 to authors

xxxx      28798 21.9  1.8 366732 155228 pts/5   Sl   08:36   1:14 python run_p2pool.py --net litecoin -f 0.4 --give-author 0.4

Edit: gave it a second thought and closedit. Do not know enought about this to open it widely on the net.
sr. member
Activity: 477
Merit: 500
After I start p2pool one error, this one (not the same) every now and then. During last night, there has been a lot of them ('new errors' end the ones that come after retry).
Also, 7 found blocks @ 150Khz during 0.300 days (;.D), so if it is when submitting blocks, it does not fail all.


Counted 11 group of errors on the log, so most likely i have not missed real blocks. On my hash rate it is too much and 7 found is somewhere in the correct scale.

The error that comes at the start, has been there also once during the night.
legendary
Activity: 1361
Merit: 1003
Don`t panic! Organize!
If this "method not found" error is just after you start node - ignore it.
If it shows up after few hrs of minig - something is wrong.
Try this git tree: https://github.com/litecoin-project/litecoin/tree/0.6.3

sr. member
Activity: 477
Merit: 500
Is this correct place to send error logs? Anyway, here it is (Litecoin mining, Ubuntu linux 64 bit, Python 2.7.3, p2pool 11.2, cgminer):

Did I just miss a block reward?
 
Code:
2013-03-16 02:18:51.330217 New work for worker! Difficulty: 0.000033 Share difficulty: 0.186782 Total block value: 50.100000 LTC including 1 transactions
2013-03-16 02:18:51.562563 P2Pool: 17311 shares in chain (9289 verified/17315 total) Peers: 6 (0 incoming)
2013-03-16 02:18:51.562757  Local: 141kH/s in last 10.0 minutes Local dead on arrival: ~2.0% (1-4%) Expected time to share: 1.6 hours
2013-03-16 02:18:51.562855  Shares: 1 (0 orphan, 0 dead) Stale rate: ~0.0% (0-80%) Efficiency: ~112.8% (23-113%) Current payout: 0.0000 LTC
2013-03-16 02:18:51.562963  Pool: 90046kH/s Stale rate: 11.3% Expected time to block: 1.1 hours
2013-03-16 02:18:52.372069 > Error submitting block: (will retry)
2013-03-16 02:18:52.372251 > Traceback (most recent call last):
2013-03-16 02:18:52.372354 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 545, in _runCallbacks
2013-03-16 02:18:52.372532 >     current.result = callback(current.result, *args, **kw)
2013-03-16 02:18:52.372627 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1095, in gotResult
2013-03-16 02:18:52.372719 >     _inlineCallbacks(r, g, deferred)
2013-03-16 02:18:52.372812 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
2013-03-16 02:18:52.372905 >     result = result.throwExceptionIntoGenerator(g)
2013-03-16 02:18:52.372997 >   File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2013-03-16 02:18:52.373091 >     return g.throw(self.type, self.value, self.tb)
2013-03-16 02:18:52.373181 > --- ---
2013-03-16 02:18:52.373272 >   File "/home/hko/src/p2pool.11.2/p2pool-11.2/p2pool/util/deferral.py", line 41, in f
2013-03-16 02:18:52.373364 >     result = yield func(*args, **kwargs)
2013-03-16 02:18:52.373455 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
2013-03-16 02:18:52.373546 >     result = result.throwExceptionIntoGenerator(g)
2013-03-16 02:18:52.373637 >   File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2013-03-16 02:18:52.373728 >     return g.throw(self.type, self.value, self.tb)
2013-03-16 02:18:52.373821 >   File "/home/hko/src/p2pool.11.2/p2pool-11.2/p2pool/bitcoin/helper.py", line 73, in submit_block_rpc
2013-03-16 02:18:52.373914 >     result = yield bitcoind.rpc_submitblock(bitcoin_data.block_type.pack(block).encode('hex'))
2013-03-16 02:18:52.374007 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
2013-03-16 02:18:52.374098 >     result = result.throwExceptionIntoGenerator(g)
2013-03-16 02:18:52.374189 >   File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2013-03-16 02:18:52.374281 >     return g.throw(self.type, self.value, self.tb)
2013-03-16 02:18:52.374372 >   File "/home/hko/src/p2pool.11.2/p2pool-11.2/p2pool/util/jsonrpc.py", line 133, in _http_do
2013-03-16 02:18:52.374465 >     raise Error_for_code(resp['error']['code'])(resp['error']['message'], resp['error'].get('data', None))
2013-03-16 02:18:52.374580 > p2pool.util.jsonrpc.NarrowError: -32601 Method not found
2013-03-16 02:18:52.802962 Worker LeYwScvLCNV2HtcdbhttYRyiA68PkxeRSS submitted share with hash > target:
2013-03-16 02:18:52.803177     Hash:   f51d2f8766822d2f278eaf0b3badc9576675eafe01cbbce35f6ee092aef3
2013-03-16 02:18:52.803300     Target: 74e9e08aa9e2f00000000000000000000000000000000000000000000000

Code:
2013-03-16 02:19:02.274273 Worker LeYwScvLCNV2HtcdbhttYRyiA68PkxeRSS submitted share with hash > target:
2013-03-16 02:19:02.274453     Hash:   e28dda0362f98155c7dad450cca48e9a4853d52ef7fadbec38306283c0cc
2013-03-16 02:19:02.274572     Target: 6d7acd59ed19840000000000000000000000000000000000000000000000
2013-03-16 02:19:02.382025 > Unhandled error in Deferred:
2013-03-16 02:19:02.382513 > Unhandled Error
2013-03-16 02:19:02.382629 > Traceback (most recent call last):
2013-03-16 02:19:02.382729 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 391, in errback
2013-03-16 02:19:02.382823 >     self._startRunCallbacks(fail)
2013-03-16 02:19:02.382916 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 458, in _startRunCallbacks
2013-03-16 02:19:02.383006 >     self._runCallbacks()
2013-03-16 02:19:02.383098 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 545, in _runCallbacks
2013-03-16 02:19:02.383189 >     current.result = callback(current.result, *args, **kw)
2013-03-16 02:19:02.383280 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1095, in gotResult
2013-03-16 02:19:02.383389 >     _inlineCallbacks(r, g, deferred)
2013-03-16 02:19:02.383482 > --- ---
2013-03-16 02:19:02.383574 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
2013-03-16 02:19:02.383666 >     result = result.throwExceptionIntoGenerator(g)
2013-03-16 02:19:02.383758 >   File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2013-03-16 02:19:02.383852 >     return g.throw(self.type, self.value, self.tb)
2013-03-16 02:19:02.383943 >   File "/home/hko/src/p2pool.11.2/p2pool-11.2/p2pool/util/deferral.py", line 41, in f
2013-03-16 02:19:02.384034 >     result = yield func(*args, **kwargs)
2013-03-16 02:19:02.384125 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
2013-03-16 02:19:02.384216 >     result = result.throwExceptionIntoGenerator(g)
2013-03-16 02:19:02.384307 >   File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2013-03-16 02:19:02.384454 >     return g.throw(self.type, self.value, self.tb)
2013-03-16 02:19:02.384555 >   File "/home/hko/src/p2pool.11.2/p2pool-11.2/p2pool/bitcoin/helper.py", line 73, in submit_block_rpc
2013-03-16 02:19:02.384648 >     result = yield bitcoind.rpc_submitblock(bitcoin_data.block_type.pack(block).encode('hex'))
2013-03-16 02:19:02.384740 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
2013-03-16 02:19:02.384831 >     result = result.throwExceptionIntoGenerator(g)
2013-03-16 02:19:02.384922 >   File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2013-03-16 02:19:02.385039 >     return g.throw(self.type, self.value, self.tb)
2013-03-16 02:19:02.385132 >   File "/home/hko/src/p2pool.11.2/p2pool-11.2/p2pool/util/jsonrpc.py", line 133, in _http_do
2013-03-16 02:19:02.385225 >     raise Error_for_code(resp['error']['code'])(resp['error']['message'], resp['error'].get('data', None))
2013-03-16 02:19:02.385320 > p2pool.util.jsonrpc.NarrowError: -32601 Method not found
2013-03-16 02:19:03.362130 Worker LeYwScvLCNV2HtcdbhttYRyiA68PkxeRSS submitted share with hash > target:
2013-03-16 02:19:03.362454     Hash:   9d57649c0e0d6c613e5c98d8045ef2dbd4d1415f6a20369c3123d8ba7569
2013-03-16 02:19:03.362590     Target: 6d7acd59ed19840000000000000000000000000000000000000000000000
hero member
Activity: 896
Merit: 1000
Right. The question is, is tuning the block sizes causing a problem with p2pool? Is that the "bug"?
Adding that to the my mining on P2Pool FAQ.
legendary
Activity: 1379
Merit: 1003
nec sine labore
Right. The question is, is tuning the block sizes causing a problem with p2pool? Is that the "bug"?

No, tuning the block size changes the number of transactions that will be included in your block when you find one.

spiccioli
hero member
Activity: 658
Merit: 500
Right. The question is, is tuning the block sizes causing a problem with p2pool? Is that the "bug"?
legendary
Activity: 1361
Merit: 1003
Don`t panic! Organize!
I wonder if the reason p2pool has issues is because some miners decide to try and restrict their local bitcoind block sizes. Using the settings rav3n_pl and other have posted to reduce latency.

If miners have inconsistent bitcoind setting for block sizes how does p2pool aggregate them to make a block within the shares?

P2pool miners are each making their own blocks according to their own rules, only the payment is shared.
Trouble was because block was TOO BIG. Tuning block to SMALLER size can`t produce any trouble related to that bug.
full member
Activity: 192
Merit: 100
I wonder if the reason p2pool has issues is because some miners decide to try and restrict their local bitcoind block sizes. Using the settings rav3n_pl and other have posted to reduce latency.

If miners have inconsistent bitcoind setting for block sizes how does p2pool aggregate them to make a block within the shares?

P2pool miners are each making their own blocks according to their own rules, only the payment is shared.
hero member
Activity: 658
Merit: 500
The .8 "bug" was because of people tinkering with the block sizes. A single transaction was 990kb, below the hard limit of 1mb, but above the threshold that .7 liked so .7 rejected it and .8 accepted it. That cuased the fork, for 11 subsequent blocks.

I wonder if the reason p2pool has issues is because some miners decide to try and restrict their local bitcoind block sizes. Using the settings rav3n_pl and other have posted to reduce latency.

If miners have inconsistent bitcoind setting for block sizes how does p2pool aggregate them to make a block within the shares?


Forrest?
full member
Activity: 192
Merit: 100
I'm fixing to move back to p2pool but I want to clarify something.  Do I have to downgrade my bitcoin client to 0.7.2 from 0.8.0 before mining?  Or is it all sorted now and I can stay with 0.8.0?
0.8.0 works if there is no attack. If there is an attack and another fork is induced, with 0.8.0 you'd be mining on the wrong fork.
legendary
Activity: 916
Merit: 1003
I'm fixing to move back to p2pool but I want to clarify something.  Do I have to downgrade my bitcoin client to 0.7.2 from 0.8.0 before mining?  Or is it all sorted now and I can stay with 0.8.0?
hero member
Activity: 896
Merit: 1000
I took the time to compile a guide for mining efficiently on P2Pool:

https://bitcointalksearch.org/topic/a-guide-for-mining-efficiently-on-p2pool-includes-fud-repellent-and-faq-153232

Hope it helps. I have still some details to add but there's enough already for a first version.
Jump to: