Bitcoin Forum
December 08, 2016, 08:24:00 AM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
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 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 ... 744 »
  Print  
Author Topic: [1500 TH] p2pool: Decentralized, DoS-resistant, Hop-Proof pool  (Read 2032695 times)
forrestv
Hero Member
*****
Offline Offline

Activity: 510


View Profile
February 22, 2012, 06:12:46 AM
 #921

forrestv, are you considering acting on any of these ideas?  What are you current thoughts on this?

I've though about it quite a bit Smiley I plan to start a second P2Pool once P2Pool reaches about 400GH/s, because only then will we have enough power to make splitting into two okay. The upcoming protocol change lets new P2Pools safely be created.

Any method of dynamically creating P2Pools runs the risk of hurting miners because a pool can't simply be terminated if the hash rate lowers, since the last day of shares that were mined won't be built on top of and won't get their fair reward.

I intend to move towards the high-difficulty p2pool backbone idea eventually, but that will obviously require a lot of thought and changes.

1J1zegkNSbwX4smvTdoHSanUfwvXFeuV23
1481185440
Hero Member
*
Offline Offline

Posts: 1481185440

View Profile Personal Message (Offline)

Ignore
1481185440
Reply with quote  #2

1481185440
Report to moderator
1481185440
Hero Member
*
Offline Offline

Posts: 1481185440

View Profile Personal Message (Offline)

Ignore
1481185440
Reply with quote  #2

1481185440
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481185440
Hero Member
*
Offline Offline

Posts: 1481185440

View Profile Personal Message (Offline)

Ignore
1481185440
Reply with quote  #2

1481185440
Report to moderator
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218


Gerald Davis


View Profile
February 22, 2012, 01:40:46 PM
 #922

I intend to move towards the high-difficulty p2pool backbone idea eventually, but that will obviously require a lot of thought and changes.

Excellent.  I doubt I can help with the coding but if you need to help in tacking down the details of implementation I would be glad to participate in any technical discussion or go over any whitepapers or design docs.

It is the most ambitious goal but a long share time high difficulty backbone would be immensely valuable.  

* Would allow creating an arbitrary number of p2pools.
* Would allow conventional pools to connect and provide a 3rd party method to verify a pool is legit.
* Would allow creating concepts like a distributed pps pool (payment would be semi-centralized meaning operator could cheat but it would be immediately obvious).
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218


Gerald Davis


View Profile
February 22, 2012, 01:45:25 PM
 #923

Why such a difference in the statistics and the client at all times?

As kjj says it is because you are seeing it indirectly.

An example might help:
say I was flipping coins (and you could verify the coin flip was fair).  You couldn't see the actual coin flips you were only notified when a heads occurred.  Given that you could estimate my "flip rate" but it would be an estimate.  20 heads per minute ~= 40 flips per minute but I might actually be flipping at 42 flips per minute or 37 flips per minute.

With a coin flip since the measured outcome occurs 50% of the time (heads = 1 share) thus your estimate is going to be pretty accurate even over a short period of time.  Now imagine I rolled a pair of dice and notified you on snake eyes (2x ones).  Since that only occurs 1 in 36 times the "roll rate" would be 36x the snake eye rate but variance would be higher as you get less observations (snake eyes) relative to the event rate (rolling the dice).

With mining there is even less observations relative to the event.  Difficult 1 share = once every 2^32 ~= 4.2 billion hashes.  The pool only sees the shares thus it has less data to work with to approximate the rate.  p2pool uses shares higher than difficult 1 and that means even less observations.

The only software that knows your hashrate is the miner.  Everything else is estimating it by looking at shares.  Even your payment is an estimate using shares as a proxy for the hashrate (and thus actual work attempted).
fehknt
Newbie
*
Offline Offline

Activity: 13


View Profile
February 22, 2012, 03:15:56 PM
 #924

Just updated (0ad46ea0be3cae43184fef40d34469880d86f02e -> 5e04126742449ed026b2ea940f33a19656de6a6d), started getting a new error I haven't seen before:
Code:
2012-02-22 08:55:57.536599 > Traceback (most recent call last):
2012-02-22 08:55:57.536700 >   File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 823, in _inlineCallbacks
2012-02-22 08:55:57.536739 >     result = g.send(result)
2012-02-22 08:55:57.536774 >   File "/home/.../p2pool/p2pool/util/jsonrpc.py", line 105, in render_POST
2012-02-22 08:55:57.536808 >     result = yield method_meth(request, *params)
2012-02-22 08:55:57.536842 >   File "/home/.../p2pool/p2pool/bitcoin/worker_interface.py", line 21, in rpc_getwork
2012-02-22 08:55:57.536877 >     return self.parent._getwork(request, data, long_poll=self.long_poll)
2012-02-22 08:55:57.536911 >   File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 944, in unwindGenerator
2012-02-22 08:55:57.536960 >     return _inlineCallbacks(None, f(*args, **kwargs), Deferred())
2012-02-22 08:55:57.536994 > --- <exception caught here> ---
2012-02-22 08:55:57.537028 >   File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 823, in _inlineCallbacks
2012-02-22 08:55:57.537062 >     result = g.send(result)
2012-02-22 08:55:57.537095 >   File "/home/.../p2pool/p2pool/bitcoin/worker_interface.py", line 63, in _getwork
2012-02-22 08:55:57.537129 >     defer.returnValue(self.merkle_root_to_handler[header['merkle_root']](header, request))
2012-02-22 08:55:57.537164 >   File "/home/.../p2pool/p2pool/main.py", line 652, in got_response
2012-02-22 08:55:57.537197 >     reactor.callLater(1, grapher.add_localrate_point, bitcoin_data.target_to_average_attempts(target), not on_time)
2012-02-22 08:55:57.537232 > exceptions.NameError: global name 'grapher' is not defined
I'm running python 2.6.5 (Ubuntu 10.04 LTS).  P2Pool continues to run but dumps a lot of these, and appears to be failing to receive work from the worker.  Not sure if it's failing to accept just the low-difficulty work or if shares will be missed too - haven't let it run long enough to "probably" have missed a share.  The data/rrd.poolrate and rrd.stalerate files seem to be udpated, but not the rrd.local*rate files.

I try to be helpful and/or useful.  If you agree, this is a great way to show it: 1P3MW6fuHgA9TCAXoGy9X7KupfypGn7Dx9
Proofer
Sr. Member
****
Offline Offline

Activity: 251


View Profile
February 22, 2012, 04:58:41 PM
 #925

cgminer:
Code:
[2012-02-22 08:44:00] Accepted 00000000.1c5c9ad1.2ea00ae6 GPU 0 thread 0
[2012-02-22 08:44:06] Pool 0 not providing work fast enough
[2012-02-22 08:45:06] Pool 0 http://127.0.0.1:9332 not responding!

I stopped/restarted p2pool; this is the repeating state output:
Code:
2012-02-22 08:56:08.357215 P2Pool: 27608 shares in chain (24672 verified/27612 total) Peers: 0 (0 incoming)
2012-02-22 08:56:08.357297  Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???
2012-02-22 08:56:08.357320  Shares: 0 (0 orphan, 0 dead) Stale rate: ??? Efficiency: ??? Current payout: 0.4370 BTC
2012-02-22 08:56:08.357346  Pool: 270GH/s Stale rate: 7.9% Expected time to block: 6.1 hours

Times are USA PST (GMT -0800).

What's wrong?

Edit:  "fixed" by rebooting (Ubuntu 11.04)
fehknt
Newbie
*
Offline Offline

Activity: 13


View Profile
February 22, 2012, 05:30:42 PM
 #926

9f55b0458c8064ca899b0992500802e52dee37eb fixed things for me, thanks!

I try to be helpful and/or useful.  If you agree, this is a great way to show it: 1P3MW6fuHgA9TCAXoGy9X7KupfypGn7Dx9
fehknt
Newbie
*
Offline Offline

Activity: 13


View Profile
February 22, 2012, 05:32:33 PM
 #927

cgminer:
Code:
[2012-02-22 08:44:00] Accepted 00000000.1c5c9ad1.2ea00ae6 GPU 0 thread 0
[2012-02-22 08:44:06] Pool 0 not providing work fast enough
[2012-02-22 08:45:06] Pool 0 http://127.0.0.1:9332 not responding!


I used to get that on older versions of cgminer - what version are you using / try updating to 2.2.7?

I try to be helpful and/or useful.  If you agree, this is a great way to show it: 1P3MW6fuHgA9TCAXoGy9X7KupfypGn7Dx9
Proofer
Sr. Member
****
Offline Offline

Activity: 251


View Profile
February 22, 2012, 05:40:09 PM
 #928

cgminer:
Code:
[2012-02-22 08:44:00] Accepted 00000000.1c5c9ad1.2ea00ae6 GPU 0 thread 0
[2012-02-22 08:44:06] Pool 0 not providing work fast enough
[2012-02-22 08:45:06] Pool 0 http://127.0.0.1:9332 not responding!


I used to get that on older versions of cgminer - what version are you using / try updating to 2.2.7?

I am running 2.2.7.   (Note: the problem was "fixed" by rebooting Ubuntu 11.04.)
forrestv
Hero Member
*****
Offline Offline

Activity: 510


View Profile
February 22, 2012, 06:51:50 PM
 #929

Finally created a "share explorer"! Play with it here: http://forre.st:9332/web/explorer (or on your local P2Pool installation)

1J1zegkNSbwX4smvTdoHSanUfwvXFeuV23
marcus_of_augustus
Legendary
*
Offline Offline

Activity: 2100



View Profile
February 22, 2012, 08:39:24 PM
 #930

Garr:
Quote
Bitcoind not up to date? What's the output from "bitcoind getinfo"?

This:

{
    "version" : 50200,
    "balance" : 44520.93652163,
    "blocks" : 197724,
    "connections" : 8,
    "proxy" : "",
    "generate" : false,
    "genproclimit" : 1,
    "difficulty" : 1376302.26788638,
    "hashespersec" : 0,
    "testnet" : false,
    "keypoololdest" : 1307423814,
    "keypoolsize" : 153,
    "paytxfee" : 0.00000000,
    "errors" : "See bitcoin.org/feb20 if you have trouble connecting after 20 February"
}

That is without p2pool and cgminer running.

Assuming your output for the "balance" is genuine ... wow! p2pool rocks that much?

Also, word of warning, for security reasons you probably do not want to have a live instance of bitcoind used for mining pointing at a wallet containing upwards of U$200K ... unless you are supremely confident and good at network security. Best to read up on how to create storage safe, off-line wallets, etc for large amounts .... can provide links if you need them.

O_Shovah
Sr. Member
****
Offline Offline

Activity: 410


Watercooling the world of mining


View Profile
February 22, 2012, 11:25:45 PM
 #931

Hello

Im currently Trying to implement a p2pool plattfrom on my ARM board.
P2pool itself seems to run just fine.
The catch seems to bitcoin client.
I have not succeded in recompiling it for ARM so far,so in tried using Electrum wich itself works just fine.

The problem is it does not the job of the original client am i correct ?
Or is it possible to make p2pool run with it ?

Or has anybody compiled a original bitcoin client version that is likely to run on a ubuntu ARM plattform ?

Many thanks in advance

kjj
Legendary
*
Offline Offline

Activity: 1302



View Profile
February 23, 2012, 01:09:05 AM
 #932

I'm getting this using p2pool 0.9 (1bdeed1) and bitcoind 0.6rc1:

Code:
2012-02-23 01:01:45.821401 New work for worker! Difficulty: 0.999985 Share difficulty: 515.666135 Total block value: 50.048000 BTC including 82 transactions
2012-02-23 01:01:45.825691
2012-02-23 01:01:45.825773 Error when requesting noncached value:
2012-02-23 01:01:45.825843 > Traceback (most recent call last):
2012-02-23 01:01:45.825909 >   File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 388, in errback
2012-02-23 01:01:45.825979 >     self._startRunCallbacks(fail)
2012-02-23 01:01:45.826044 >   File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 455, in _startRunCallbacks
2012-02-23 01:01:45.826107 >     self._runCallbacks()
2012-02-23 01:01:45.826164 >   File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 542, in _runCallbacks
2012-02-23 01:01:45.826227 >     current.result = callback(current.result, *args, **kw)
2012-02-23 01:01:45.826286 >   File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 1076, in gotResult
2012-02-23 01:01:45.826347 >     _inlineCallbacks(r, g, deferred)
2012-02-23 01:01:45.826406 > --- <exception caught here> ---
2012-02-23 01:01:45.826465 >   File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 1018, in _inlineCallbacks
2012-02-23 01:01:45.826527 >     result = result.throwExceptionIntoGenerator(g)
2012-02-23 01:01:45.826586 >   File "/usr/lib/python2.6/dist-packages/twisted/python/failure.py", line 350, in throwExceptionIntoGenerator
2012-02-23 01:01:45.826648 >     return g.throw(self.type, self.value, self.tb)
2012-02-23 01:01:45.826706 >   File "/opt/p2pool/p2pool/main.py", line 178, in <lambda>
2012-02-23 01:01:45.826768 >     height_cacher = deferral.DeferredCacher(defer.inlineCallbacks(lambda block_hash: defer.returnValue((yield bitcoind.rpc_getblock('%x' % (block_hash,)))['blockcount'])))
2012-02-23 01:01:45.826829 >   File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 1018, in _inlineCallbacks
2012-02-23 01:01:45.826891 >     result = result.throwExceptionIntoGenerator(g)
2012-02-23 01:01:45.826950 >   File "/usr/lib/python2.6/dist-packages/twisted/python/failure.py", line 350, in throwExceptionIntoGenerator
2012-02-23 01:01:45.827010 >     return g.throw(self.type, self.value, self.tb)
2012-02-23 01:01:45.827069 >   File "/opt/p2pool/p2pool/util/jsonrpc.py", line 67, in callRemote
2012-02-23 01:01:45.827128 >     raise Error(**resp['error'])
2012-02-23 01:01:45.827203 > p2pool.util.jsonrpc.Error: -5 Block not found
2012-02-23 01:01:45.827252
2012-02-23 01:01:47.954886 P2Pool: 17388 shares in chain (10647 verified/17392 total) Peers: 10 (0 incoming)

p2pcoin: a USB/CD/PXE p2pool miner - 1N8ZXx2cuMzqBYSK72X4DAy1UdDbZQNPLf - todo
I routinely ignore posters with paid advertising in their sigs.  You should too.
forrestv
Hero Member
*****
Offline Offline

Activity: 510


View Profile
February 23, 2012, 01:25:40 AM
 #933

I'm getting this using p2pool 0.9 (1bdeed1) and bitcoind 0.6rc1:

Constantly or just occasionally? Maybe you were on a Bitcoin block fork..

1J1zegkNSbwX4smvTdoHSanUfwvXFeuV23
kjj
Legendary
*
Offline Offline

Activity: 1302



View Profile
February 23, 2012, 02:47:36 AM
 #934

I'm getting this using p2pool 0.9 (1bdeed1) and bitcoind 0.6rc1:

Constantly or just occasionally? Maybe you were on a Bitcoin block fork..

It stopped after a while, but it popped up every dozen seconds or so for several minutes while it was happening.

But, if bitcoind and p2pool had different ideas about which block they should be building on, that is a pretty big problem, is it not?

p2pcoin: a USB/CD/PXE p2pool miner - 1N8ZXx2cuMzqBYSK72X4DAy1UdDbZQNPLf - todo
I routinely ignore posters with paid advertising in their sigs.  You should too.
forrestv
Hero Member
*****
Offline Offline

Activity: 510


View Profile
February 23, 2012, 03:19:53 AM
 #935

It stopped after a while, but it popped up every dozen seconds or so for several minutes while it was happening.

But, if bitcoind and p2pool had different ideas about which block they should be building on, that is a pretty big problem, is it not?

The problem was other users building on blocks that you didn't think were the right ones to build on, not any disagreement between your local daemons. There is no problem, except that the error shouldn't be displayed, or at least should be smaller with an explanation.

1J1zegkNSbwX4smvTdoHSanUfwvXFeuV23
Icoin
Hero Member
*****
Offline Offline

Activity: 585



View Profile WWW
February 23, 2012, 06:06:25 AM
 #936

Hi
Is a p2pool merged mining howto avalable ?

forrestv
Hero Member
*****
Offline Offline

Activity: 510


View Profile
February 23, 2012, 06:15:20 AM
 #937

Hi
Is a p2pool merged mining howto avalable ?

It's pretty easy - start namecoind, then run P2Pool with --merged http://NAMECOIN_USER:NAMECOIN_PASSWORD@127.0.0.1:NAMECOIN_RPC_PORT/

1J1zegkNSbwX4smvTdoHSanUfwvXFeuV23
Icoin
Hero Member
*****
Offline Offline

Activity: 585



View Profile WWW
February 23, 2012, 07:35:14 AM
 #938

Hi
Is a p2pool merged mining howto avalable ?

It's pretty easy - start namecoind, then run P2Pool with --merged http://NAMECOIN_USER:NAMECOIN_PASSWORD@127.0.0.1:NAMECOIN_RPC_PORT/


thanks a lot forrestv! Smiley

randomguy7
Hero Member
*****
Offline Offline

Activity: 528


View Profile
February 23, 2012, 06:56:28 PM
 #939

Does someone know how this can happen?

The recently found block gave me a reward of about 0.004 BTC, but my p2pool instance says I should have gotten about 0.22 BTC. How's that possible? Total hashing power shows up as about 294 GH/s, so I shouldn't be on a fork. I'm running p2pool v0.9 btw.

Edit: Is it possible that someone else who's on a fork found the block?


Edit2: Mystery solved. The payout came from elligius, I mined a few shares there.
xxaudioxx
Full Member
***
Offline Offline

Activity: 137



View Profile
February 24, 2012, 01:58:51 AM
 #940

Thanks to Holiday tutorial i'm now mining (700mh/s) for p2pool... cheers

+1 smracer, +2 MadSweeney, +1 bitdragon, +1 mimarob, +1 Valalvax, +2 dbox, +100 payb.tc, +1 TheBitMan, +2 gusti, +1 hashking, +1 Xunie, +2 wm-center, +1 Scott J

https://bitcointalk.org/index.php?topic=484.msg962923#msg962923
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 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 ... 744 »
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!