Author

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

donator
Activity: 798
Merit: 500
I have multiple interfaces on a host and I want run_p2pool.py to listen on 9.8.7.6:9332  How do I do this?

Code:
p2pool interface:
  --p2pool-port PORT    use port PORT to listen for connections (forward this
                        port from your router!) (default: bitcoin:9333,
                        litecoin:9338)
  -n ADDR[:PORT], --p2pool-node ADDR[:PORT]
                        connect to existing p2pool node at ADDR listening on
                        port PORT (defaults to default p2pool P2P port) in
                        addition to builtin addresses

worker interface:
  -w PORT, --worker-port PORT
                        listen on PORT for RPC connections from miners
                        (default: bitcoin:9332, litecoin:9327)
sr. member
Activity: 314
Merit: 251
I am receiving errors:

Code:
2012-02-10 01:35:23.919558 Processing 1001 shares from 72.14.191.28:9333...
2012-02-10 01:36:49.833442 Requesting parent share 27a81904 from 168.7.116.243:9333
2012-02-10 01:36:49.837495 ... done processing 1001 shares. New: 1001 Have: 9027/~17280
2012-02-10 01:36:49.842651 > Watchdog timer went off at:
2012-02-10 01:36:49.843077 >   File "run_p2pool.py", line 5, in
2012-02-10 01:36:49.843437 >     main.run()
2012-02-10 01:36:49.843760 >   File "/home/user/p2pool/p2pool/main.py", line 1134, in run
2012-02-10 01:36:49.844139 >     reactor.run()
2012-02-10 01:36:49.844464 >   File "/usr/lib/python2.7/site-packages/twisted/internet/base.py", line 1169, in run
2012-02-10 01:36:49.844881 >     self.mainLoop()
2012-02-10 01:36:49.845235 >   File "/usr/lib/python2.7/site-packages/twisted/internet/base.py", line 1181, in mainLoop
2012-02-10 01:36:49.845602 >     self.doIteration(t)
2012-02-10 01:36:49.845937 >   File "/usr/lib/python2.7/site-packages/twisted/internet/pollreactor.py", line 167, in doPoll
2012-02-10 01:36:49.846259 >     log.callWithLogger(selectable, _drdw, selectable, fd, event)
2012-02-10 01:36:49.846646 >   File "/usr/lib/python2.7/site-packages/twisted/python/log.py", line 84, in callWithLogger
2012-02-10 01:36:49.846974 >     return callWithContext({"system": lp}, func, *args, **kw)
2012-02-10 01:36:49.847333 >   File "/usr/lib/python2.7/site-packages/twisted/python/log.py", line 69, in callWithContext
2012-02-10 01:36:49.847671 >     return context.call({ILogContext: newCtx}, func, *args, **kw)
2012-02-10 01:36:49.847990 >   File "/usr/lib/python2.7/site-packages/twisted/python/context.py", line 118, in callWithContext
2012-02-10 01:36:49.848439 >     return self.currentContext().callWithContext(ctx, func, *args, **kw)
2012-02-10 01:36:49.848827 >   File "/usr/lib/python2.7/site-packages/twisted/python/context.py", line 81, in callWithContext
2012-02-10 01:36:49.849235 >     return func(*args,**kw)
2012-02-10 01:36:49.849561 >   File "/usr/lib/python2.7/site-packages/twisted/internet/posixbase.py", line 581, in _doReadOrWrite
2012-02-10 01:36:49.849948 >     why = selectable.doRead()
2012-02-10 01:36:49.850265 >   File "/usr/lib/python2.7/site-packages/twisted/internet/tcp.py", line 199, in doRead
2012-02-10 01:36:49.850625 >     rval = self.protocol.dataReceived(data)
2012-02-10 01:36:49.850957 >   File "/home/user/p2pool/p2pool/p2p.py", line 62, in
2012-02-10 01:36:49.851275 >     self.dataReceived = lambda data: (self.timeout_delayed.reset(100) if not self.timeout_delayed.called else None, old_dataReceived(data))[0]
2012-02-10 01:36:49.851738 >   File "/home/user/p2pool/p2pool/util/datachunker.py", line 40, in _DataChunker
2012-02-10 01:36:49.852078 >     wants = receiver.send(buf.get(wants))
2012-02-10 01:36:49.852455 >   File "/home/user/p2pool/p2pool/bitcoin/p2p.py", line 64, in dataReceiver
2012-02-10 01:36:49.852779 >     self.packetReceived(command, payload2)
2012-02-10 01:36:49.853155 >   File "/home/user/p2pool/p2pool/p2p.py", line 74, in packetReceived
2012-02-10 01:36:49.853482 >     bitcoin_p2p.BaseProtocol.packetReceived(self, command, payload2)
2012-02-10 01:36:49.853837 >   File "/home/user/p2pool/p2pool/bitcoin/p2p.py", line 74, in packetReceived
2012-02-10 01:36:49.854172 >     handler(**payload2)
2012-02-10 01:36:49.854487 >   File "/home/user/p2pool/p2pool/p2p.py", line 206, in handle_shares
2012-02-10 01:36:49.854910 >     self.node.handle_shares(res, self)
2012-02-10 01:36:49.855246 >   File "/home/user/p2pool/p2pool/main.py", line 269, in handle_shares
2012-02-10 01:36:49.855614 >     set_real_work2()
2012-02-10 01:36:49.855933 >   File "/home/user/p2pool/p2pool/main.py", line 184, in set_real_work2
2012-02-10 01:36:49.856295 >     best, desired = tracker.think(get_height_rel_highest, pre_current_work.value['previous_block'], pre_current_work.value['bits'])
2012-02-10 01:36:49.856639 >   File "/home/user/p2pool/p2pool/data.py", line 289, in think
2012-02-10 01:36:49.856960 >     if self.attempt_verify(share):
2012-02-10 01:36:49.857331 >   File "/home/user/p2pool/p2pool/data.py", line 268, in attempt_verify
2012-02-10 01:36:49.857652 >     share.check(self)
2012-02-10 01:36:49.858012 >   File "/home/user/p2pool/p2pool/data.py", line 133, in check
2012-02-10 01:36:49.858425 >     share_info, gentx = generate_transaction(tracker, self.share_info['share_data'], self.header['bits'].target, self.share_info['timestamp'], self.net)
2012-02-10 01:36:49.858811 >   File "/home/user/p2pool/p2pool/data.py", line 209, in generate_transaction
2012-02-10 01:36:49.859152 >     other_weights, other_total_weight, other_donation_weight = tracker.get_cumulative_weights(previous_share_hash, min(height, chain_length), 65535*max(0, max_att - this_att))
2012-02-10 01:36:49.859488 >   File "/home/user/p2pool/p2pool/util/skiplist.py", line 55, in __call__
2012-02-10 01:36:49.859865 >     updates[x] = updates[x][0], self.combine_deltas(updates[x][1], delta) if updates[x][1] is not None else delta
2012-02-10 01:36:49.860201 >   File "/home/user/p2pool/p2pool/skiplists.py", line 13, in combine_deltas
2012-02-10 01:36:49.860570 >     return share_count1 + share_count2, math.add_dicts(weights1, weights2), total_weight1 + total_weight2, total_donation_weight1 + total_donation_weight2
2012-02-10 01:36:49.860911 >   File "/home/user/p2pool/p2pool/util/math.py", line 64, in add_dicts
2012-02-10 01:36:49.861269 >     res[k] = res.get(k, 0) + v
2012-02-10 01:36:49.861655 >   File "/home/user/p2pool/p2pool/main.py", line 840, in
2012-02-10 01:36:49.862016 >     sys.stderr.write, 'Watchdog timer went off at:\n' + ''.join(traceback.format_stack())
2012-02-10 01:36:49.863502 > ---> LOST CONTACT WITH BITCOIND for 1.6 minutes! Check that it isn't frozen or dead! <---
member
Activity: 70
Merit: 10
I have multiple interfaces on a host and I want run_p2pool.py to listen on 9.8.7.6:9332  How do I do this?
hero member
Activity: 910
Merit: 1005
Just a quick note. You can now find a list recent of P2Pool blocks here:

http://blockchain.info/blocks/P2Pool
hero member
Activity: 737
Merit: 500
Sry to bother, one noob question: How do you guys actually see, when p2pool found a block? Are they listed anywhere?

Also, do you get instant payout after a block was found? Cause I didn't get any payments yesterday when you guys where screaming "27 blocks in 20min now!!1", but later I saw a lot of transactions from p2p. How is that working exactly? (I am aware of the xx blocks it needs until the mined coins can be used, that's not what I mean).

Thanks!

Some (but not all) appear in the p2pool console output.
Some (but not all) are announced n IRC.

I personally just watch my bitcoin transaction log.  All of them appear there, and yes payments are instant.   They appear in mining or generation transactions (depending on if you are looking in the GUI or the commandline version of the bitcoin application).

If you were successfully mining (and actually found shares) for all of yesterday and did not get several payment transactions, something is wrong.
hero member
Activity: 1162
Merit: 500
just use --merged http://user:pass@ip:port

For merges mining, I get this error messages:

Did you create a bitcoin.conf for namecoind with user, pass, and rpc port?

yep.

rpcuser=USER
rpcpassword=PASS
server=1
rpcport=8336


[Edit] I am using Windows. namecoind seems to be a bit flaky. At the moment it hangs at a "namecoind getinfo" ... :/
donator
Activity: 798
Merit: 500
just use --merged http://user:pass@ip:port

For merges mining, I get this error messages:

Did you create a bitcoin.conf for namecoind with user, pass, and rpc port?
newbie
Activity: 23
Merit: 0
Sry to bother, one noob question: How do you guys actually see, when p2pool found a block? Are they listed anywhere?

Also, do you get instant payout after a block was found? Cause I didn't get any payments yesterday when you guys where screaming "27 blocks in 20min now!!1", but later I saw a lot of transactions from p2p. How is that working exactly? (I am aware of the xx blocks it needs until the mined coins can be used, that's not what I mean).

Thanks!
hero member
Activity: 1162
Merit: 500
just use --merged http://user:pass@ip:port

For merges mining, I get this error messages:

2012-02-10 00:07:57.745000 Started successfully!
2012-02-10 00:07:57.746000
2012-02-10 00:07:57.804000 > Error while calling merged getauxblock:
2012-02-10 00:07:57.805000 > Traceback (most recent call last):
2012-02-10 00:07:57.806000 >   File "c:\python27\lib\site-packages\twisted\inter
net\defer.py", line 545, in _runCallbacks
2012-02-10 00:07:57.807000 >     current.result = callback(current.result, *args
, **kw)
2012-02-10 00:07:57.807000 >   File "c:\python27\lib\site-packages\twisted\inter
net\defer.py", line 1095, in gotResult
2012-02-10 00:07:57.808000 >     _inlineCallbacks(r, g, deferred)
2012-02-10 00:07:57.808000 >   File "c:\python27\lib\site-packages\twisted\inter
net\defer.py", line 1037, in _inlineCallbacks
2012-02-10 00:07:57.809000 >     result = result.throwExceptionIntoGenerator(g)
2012-02-10 00:07:57.810000 >   File "c:\python27\lib\site-packages\twisted\pytho
n\failure.py", line 382, in throwExceptionIntoGenerator
2012-02-10 00:07:57.810000 >     return g.throw(self.type, self.value, self.tb)
2012-02-10 00:07:57.811000 > --- ---
2012-02-10 00:07:57.811000 >   File "C:\bitcoin\p2pool_git\p2pool\util\deferral.
py", line 29, in f
2012-02-10 00:07:57.812000 >     result = yield func(*args, **kwargs)
2012-02-10 00:07:57.812000 >   File "c:\python27\lib\site-packages\twisted\inter
net\defer.py", line 1037, in _inlineCallbacks
2012-02-10 00:07:57.813000 >     result = result.throwExceptionIntoGenerator(g)
2012-02-10 00:07:57.813000 >   File "c:\python27\lib\site-packages\twisted\pytho
n\failure.py", line 382, in throwExceptionIntoGenerator
2012-02-10 00:07:57.814000 >     return g.throw(self.type, self.value, self.tb)
2012-02-10 00:07:57.815000 >   File "C:\bitcoin\p2pool_git\p2pool\util\jsonrpc.p
y", line 67, in callRemote
2012-02-10 00:07:57.815000 >     raise Error(**resp['error'])


Tested with latest version from git and also with forrestv-p2pool-5293db4.


[Edit] Maybe that's because namecoind is still downloading blocks?
[Edit2] No, thats not it.
hero member
Activity: 516
Merit: 643
FEATURE REQUEST: Could P2Pool load config values from a file, and accept a parameter to tell it where to put its data? This would be nice to have, instead of passing a massive long command line to it.

It isn't documented well (yet), but you can use @FILENAME to make P2Pool load options from that file. File contents would be like:
Code:
--net litecoin
-n 1.2.3.4

Accepting a parameter for data files is done as of https://github.com/forrestv/p2pool/commit/ff2a677f .
legendary
Activity: 1148
Merit: 1008
If you want to walk on water, get out of the boat
Huh!?!?! Whats going on here? Pool: 10458MH/s ? Pool stales: 48% ?

Updating and restarting P2Pool seems to fix it. Several users had this problem, and I'm looking into it right now. Will post more updates soon.

forrestv,

are split chains a waste of mining power?

As far as i know no. If the splitted chain find a block, it will be split between submitted shares in the splitted chain. Just, you are mining in a pool with 10ghash
legendary
Activity: 1379
Merit: 1003
nec sine labore
Huh!?!?! Whats going on here? Pool: 10458MH/s ? Pool stales: 48% ?

Updating and restarting P2Pool seems to fix it. Several users had this problem, and I'm looking into it right now. Will post more updates soon.

forrestv,

are split chains a waste of mining power?

what about forcing a minimum/maximum version control for all p2pool.py instances sharing the same share chain?

spiccioli
full member
Activity: 373
Merit: 100
How to update?!

Just:

1- cd ~/p2pool ; git pull
2- stop P2Pool
3- start P2Pool

Since Python doesn't need explicit compilation, yes.
legendary
Activity: 1428
Merit: 1000
Is it planned for p2pool to support Merged Mining (Bitcoind + Namecoin, like BTC Guild does) in the near future?

Merged Mining is supported but it is not pooled...means its an even bigger variance - i guess you will not like that.

just use --merged http://user:pass@ip:port

you can use the --merged parameter for as many chains (that support mm) as you wish (e.g. if you want to do devcoin also just use a second --merge pointing to devcoind)
hero member
Activity: 1162
Merit: 500
Is it planned for p2pool to support Merged Mining (Bitcoind + Namecoin, like BTC Guild does) in the near future?
hero member
Activity: 516
Merit: 643
Huh!?!?! Whats going on here? Pool: 10458MH/s ? Pool stales: 48% ?

Updating and restarting P2Pool seems to fix it. Several users had this problem, and I'm looking into it right now. Will post more updates soon.
legendary
Activity: 1204
Merit: 1000
฿itcoin: Currency of Resistance!
Reposting here:

I would love to see P2Pool with 1THash...

It is definitively the most awesome Bitcoin / Litecoin pool.

You do not need to trust in some third part to manage something so private.

That would be nice to have it fully integrated with Bitcoin/Litecoin clients... With automatic/dynamic sub-pools management... Or something like that, if needed... What about that?!

Cheers!
Thiago
legendary
Activity: 1204
Merit: 1000
฿itcoin: Currency of Resistance!
How to update?!

Just:

1- cd ~/p2pool ; git pull
2- stop P2Pool
3- start P2Pool

?
legendary
Activity: 980
Merit: 1008
^ I think p2pool dislikes your hashes.

I KID! Cheesy
hero member
Activity: 1162
Merit: 500
2012-02-04 17:45:10.650000 p2pool (version 592ceea)

Did you maroon me on my own private pool because you can't bear my ranting any more?  Wink ... kidding.

Is there a valid theory to why this pool splits happen?
Jump to: