Bitcoin Forum
November 16, 2024, 11:06:29 PM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 [25] 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 ... 814 »
  Print  
Author Topic: [1500 TH] p2pool: Decentralized, DoS-resistant, Hop-Proof pool  (Read 2591900 times)
ancow
Full Member
***
Offline Offline

Activity: 373
Merit: 100


View Profile WWW
February 09, 2012, 07:51:00 PM
 #481

How to update?!

Just:

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

Since Python doesn't need explicit compilation, yes.

BTC: 1GAHTMdBN4Yw3PU66sAmUBKSXy2qaq2SF4
spiccioli
Legendary
*
Offline Offline

Activity: 1379
Merit: 1003

nec sine labore


View Profile
February 09, 2012, 08:15:25 PM
 #482

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
Gabi
Legendary
*
Offline Offline

Activity: 1148
Merit: 1008


If you want to walk on water, get out of the boat


View Profile
February 09, 2012, 08:26:02 PM
 #483

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

forrestv (OP)
Hero Member
*****
Offline Offline

Activity: 516
Merit: 643


View Profile
February 09, 2012, 09:04:41 PM
 #484

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 .

1J1zegkNSbwX4smvTdoHSanUfwvXFeuV23
Frizz23
Hero Member
*****
Offline Offline

Activity: 1162
Merit: 500


View Profile
February 09, 2012, 11:11:12 PM
 #485

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 > --- <exception caught here> ---
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.

Ξtherization⚡️First P2E 2016⚡️🏰💎🌈 etherization.org
Regex
Newbie
*
Offline Offline

Activity: 23
Merit: 0



View Profile
February 09, 2012, 11:15:57 PM
 #486

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!
gnar1ta$
Donator
Hero Member
*
Offline Offline

Activity: 798
Merit: 500


View Profile
February 09, 2012, 11:28:58 PM
 #487

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?

Losing hundreds of Bitcoins with the best scammers in the business - BFL, Avalon, KNC, HashFast.
Frizz23
Hero Member
*****
Offline Offline

Activity: 1162
Merit: 500


View Profile
February 09, 2012, 11:36:32 PM
 #488

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" ... :/

Ξtherization⚡️First P2E 2016⚡️🏰💎🌈 etherization.org
twmz
Hero Member
*****
Offline Offline

Activity: 737
Merit: 500



View Profile
February 09, 2012, 11:42:41 PM
 #489

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.

Was I helpful?  1TwmzX1wBxNF2qtAJRhdKmi2WyLZ5VHRs
WoT, GPG

Bitrated user: ewal.
piuk
Hero Member
*****
Offline Offline

Activity: 910
Merit: 1005



View Profile WWW
February 10, 2012, 12:31:31 AM
 #490

Just a quick note. You can now find a list recent of P2Pool blocks here:

http://blockchain.info/blocks/P2Pool

Wandering Albatross
Member
**
Offline Offline

Activity: 70
Merit: 10



View Profile
February 10, 2012, 12:37:42 AM
 #491

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?

BTC: 1JgPAC8RVeh7RXqzmeL8xt3fvYahRXL3fP
neptop
Sr. Member
****
Offline Offline

Activity: 314
Merit: 251


View Profile
February 10, 2012, 01:00:39 AM
 #492

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 <module>
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 <lambda>
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 <lambda>
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! <---

BitCoin address: 1E25UJEbifEejpYh117APmjYSXdLiJUCAZ
gnar1ta$
Donator
Hero Member
*
Offline Offline

Activity: 798
Merit: 500


View Profile
February 10, 2012, 01:09:56 AM
 #493

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)

Losing hundreds of Bitcoins with the best scammers in the business - BFL, Avalon, KNC, HashFast.
Wandering Albatross
Member
**
Offline Offline

Activity: 70
Merit: 10



View Profile
February 10, 2012, 02:02:41 AM
 #494

Quote from: gnar1ta$

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)

I am probably missing some detail.  I've read the manual, etc. 

"connect to existing p2pool node at ADDR listening on"

That's not clear to me. It says to connect to an existing p2pool node.  I'm running p2pool to listen for my miners not to connect to an existing node.

BTC: 1JgPAC8RVeh7RXqzmeL8xt3fvYahRXL3fP
gnar1ta$
Donator
Hero Member
*
Offline Offline

Activity: 798
Merit: 500


View Profile
February 10, 2012, 02:06:18 AM
 #495


That's not clear to me. It says to connect to an existing p2pool node.  I'm running p2pool to listen for my miners not to connect to an existing node.


Code:
worker interface:
  -w PORT, --worker-port PORT
                        listen on PORT for RPC connections from miners
                        (default: bitcoin:9332, litecoin:9327)

No... Huh

Losing hundreds of Bitcoins with the best scammers in the business - BFL, Avalon, KNC, HashFast.
TurdHurdur
Full Member
***
Offline Offline

Activity: 216
Merit: 100


View Profile
February 10, 2012, 02:23:36 AM
 #496

gnar1ta$, it helps if you know what you're talking about.

Wandering Albatross, line 764 of p2pool/main.py has a reactor.listenTCP where you can provide an interface argument, but doesn't. So, wait on forrestv to code the means of changing that via argument or take the initiative.
gnar1ta$
Donator
Hero Member
*
Offline Offline

Activity: 798
Merit: 500


View Profile
February 10, 2012, 02:33:27 AM
 #497

gnar1ta$, it helps if you know what you're talking about.

Wandering Albatross, line 764 of p2pool/main.py has a reactor.listenTCP where you can provide an interface argument, but doesn't. So, wait on forrestv to code the means of changing that via argument or take the initiative.

Hence the  Huh  What is it he is trying to do?

Losing hundreds of Bitcoins with the best scammers in the business - BFL, Avalon, KNC, HashFast.
Wandering Albatross
Member
**
Offline Offline

Activity: 70
Merit: 10



View Profile
February 10, 2012, 02:34:09 AM
 #498

Quote from: TurdHurdur
line 764 of p2pool/main.py has a reactor.listenTCP where you can provide an interface argument, but doesn't. So, wait on forrestv to code the means of changing that via argument or take the initiative.
Thanks will look, I'm not very pythonesque.
Pythonista? Pythonovite? Pythonian? Pythoner?  

BTC: 1JgPAC8RVeh7RXqzmeL8xt3fvYahRXL3fP
Proofer
Member
**
Offline Offline

Activity: 266
Merit: 36


View Profile
February 10, 2012, 02:59:03 AM
 #499

Code:
... New work for worker! Difficulty: 2.785534 Share difficulty: 424.797691 ...

I think I know what "Share difficulty" is.  What's "Difficulty"?  Is that the miner's criterion for a "mini-share" to pass to p2pool? 
twmz
Hero Member
*****
Offline Offline

Activity: 737
Merit: 500



View Profile
February 10, 2012, 03:09:17 AM
 #500

Code:
... New work for worker! Difficulty: 2.785534 Share difficulty: 424.797691 ...

I think I know what "Share difficulty" is.  What's "Difficulty"?  Is that the miner's criterion for a "mini-share" to pass to p2pool? 

That is the difficulty of the so-called pseudo share.  P2Pool lies to your miner and tells it to solve an easy share so that your miner finds shares more often than once every 20 minutes (as would happen with the real share difficulty).  P2Pool then effectively ignores (except to calculate stats) any submitted shares that are not good enough for the real share difficulty.  It was done so that you can tell more quickly if your miners are misbehaving.

Was I helpful?  1TwmzX1wBxNF2qtAJRhdKmi2WyLZ5VHRs
WoT, GPG

Bitrated user: ewal.
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 [25] 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 ... 814 »
  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!