Bitcoin Forum
December 10, 2016, 03:09:42 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: « 1 ... 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 [522] 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 ... 744 »
  Print  
Author Topic: [1500 TH] p2pool: Decentralized, DoS-resistant, Hop-Proof pool  (Read 2034300 times)
mdude77
Legendary
*
Offline Offline

Activity: 1358


View Profile
August 28, 2014, 11:07:42 PM
 #10421

Oh? A proxy that will allow users with incompatible hardware to mine on p2pool?

This sounds interesting...... Smiley

I didn't say that.  From what I've seen so far, with my limited hardware, is the incompatibilities are caused by the 30 second job restart.  A proxy won't fix that.  A proxy can help by forcing through the job id, but that'll only help if the hash is a block.  If it's a legit share, it'll get rejected because the rest of the pool is on the next job id.

M

EDIT: A proxy can also help if the hardware is choking on the protocol "language" from p2pool.  My proxy is stratum only .. if there's any "getwork" hardware out there, it won't work.

MMinerMonitor author, monitor/auto/schedule reboots/alerts/remote/MobileMiner for Ants and Spondoolies! Latest (5.2). MPoolMonitor author, monitor stats/workers for most pools, global BTC stats (current/nxt diff/USD val/hashrate/calc)! Latest (v4.2) 
Buyer beware of Bitmain hardware and services.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
mdude77
Legendary
*
Offline Offline

Activity: 1358


View Profile
August 28, 2014, 11:09:20 PM
 #10422

I would think what we would need to make a proxy work is some type of automated escrow. I.E. many small miners mine through a proxy, the proxy tracks the individual miner work and submits the combined work to P2Pool under a single address. A payout threshold would be set (say .005 BTC to start), and the proxy would issue payouts as the individual miner reward crossed the threshold.

Now where can I find a trust-less automated escrow system that can be integrated with a proxy? Wink

Someone tried that with p2poolmining, I believe.  It worked great until he was hacked and his account was emptied.

Basically you need a mini p2pool that points to the main p2pool instead of bitcoin.  How to get all those addresses in that main p2pool share, though, would be a challenge.

M

MMinerMonitor author, monitor/auto/schedule reboots/alerts/remote/MobileMiner for Ants and Spondoolies! Latest (5.2). MPoolMonitor author, monitor stats/workers for most pools, global BTC stats (current/nxt diff/USD val/hashrate/calc)! Latest (v4.2) 
Buyer beware of Bitmain hardware and services.
Matt Corallo
Hero Member
*****
Offline Offline

Activity: 751


View Profile
August 29, 2014, 12:12:26 AM
 #10423

Hi Matt,

I noticed I had a couple of disconnects on my internet yesterday, and that the relay app seemed not to be able to reconnect again, even though netstat showed it as established, the scrolling had stopped completely. It was fine after I restarted it though - is this normal?

Thanks.
No Sad. The only thing I can think of is if you were on a very old version. The nyc server moved from one provider to another due to bad packet loss, though I think I had waited until the DNS had propagated before turning the old one off, so the only case where it would have mattered is if you were on an old version that didnt automatically re-lookup the address after a disconnect.

Matt,

As P2Pool is basically its own relay network, and already has a large global presence, would it not make sense to integrate the relay network directly with P2Pool as well (or at least a few large nodes)?
Yes, this is why I'm trying to get people here to run it Smiley. Also, I'm rewriting the client in python, and hoping to get that integrated directly.

Bitcoin Ubuntu PPA maintainer - donate to me personally: 1JBMattRztKDF2KRS3vhjJXA7h47NEsn2c
http://bitcoinrelaynetwork.org maintainer
PGP ID: 07DF 3E57 A548 CCFB 7530  7091 89BB B866 3E2E65CE
phelix
Legendary
*
Offline Offline

Activity: 1680


nmc:id/phelix


View Profile
August 29, 2014, 12:34:27 AM
 #10424

How often does p2pool query namecoind getblockaux? I would like to make sure the namecoind internal recalculation time step makes sense.
Kiss

blockchained.com ■ bitcointalk top posts
windpath
Legendary
*
Offline Offline

Activity: 938


View Profile WWW
August 29, 2014, 12:35:39 AM
 #10425

Also, I'm rewriting the client in python, and hoping to get that integrated directly.

That would be ideal Smiley

Thanks Matt

Matt Corallo
Hero Member
*****
Offline Offline

Activity: 751


View Profile
August 29, 2014, 11:45:03 AM
 #10426

Also, I'm rewriting the client in python, and hoping to get that integrated directly.

That would be ideal Smiley

Thanks Matt
Check out https://github.com/TheBlueMatt/p2pool. Once I get some testing I'll pull request that and see if I can wake forrest from his drug-induced slumber.

Bitcoin Ubuntu PPA maintainer - donate to me personally: 1JBMattRztKDF2KRS3vhjJXA7h47NEsn2c
http://bitcoinrelaynetwork.org maintainer
PGP ID: 07DF 3E57 A548 CCFB 7530  7091 89BB B866 3E2E65CE
EErik
Newbie
*
Offline Offline

Activity: 26


View Profile WWW
August 29, 2014, 12:34:36 PM
 #10427

Again need some help! Sorry i'm a noob ;-)

i'm loosing all my incoming nodes, i made 2 orphans.... what happened? is normal?

http://s22.postimg.org/s3vmzkvsd/Schermata_da_2014_08_29_14_32_27.jpg

thanks in advance E


No shares, no party!
windpath
Legendary
*
Offline Offline

Activity: 938


View Profile WWW
August 29, 2014, 01:27:04 PM
 #10428

Check out https://github.com/TheBlueMatt/p2pool. Once I get some testing I'll pull request that and see if I can wake forrest from his drug-induced slumber.

Your fork is up and running on my testing node.

I see your public.us-east.relay.mattcorallo.com (168.235.65.115) is connected as a bitcoin peer (I used addnode in bitcoin.conf).

I do not see 168.235.65.115 as a peer in p2pool (which may not be where I should see it).

I looked through the p2pool console output for "RELAY NETWORK" and did not see it anywhere.

How can I verify p2pool has connected to the relay network?

Again, thanks!

Matt Corallo
Hero Member
*****
Offline Offline

Activity: 751


View Profile
August 29, 2014, 05:35:45 PM
 #10429

Check out https://github.com/TheBlueMatt/p2pool. Once I get some testing I'll pull request that and see if I can wake forrest from his drug-induced slumber.

Your fork is up and running on my testing node.

I see your public.us-east.relay.mattcorallo.com (168.235.65.115) is connected as a bitcoin peer (I used addnode in bitcoin.conf).

I do not see 168.235.65.115 as a peer in p2pool (which may not be where I should see it).

I looked through the p2pool console output for "RELAY NETWORK" and did not see it anywhere.

How can I verify p2pool has connected to the relay network?

Again, thanks!
Remove the addnode and run p2pool with --relay-network public.YOUR_REGION.relay.mattcorallo.com

Bitcoin Ubuntu PPA maintainer - donate to me personally: 1JBMattRztKDF2KRS3vhjJXA7h47NEsn2c
http://bitcoinrelaynetwork.org maintainer
PGP ID: 07DF 3E57 A548 CCFB 7530  7091 89BB B866 3E2E65CE
bryonp
Member
**
Offline Offline

Activity: 77


View Profile
August 29, 2014, 06:17:40 PM
 #10430

Check out https://github.com/TheBlueMatt/p2pool. Once I get some testing I'll pull request that and see if I can wake forrest from his drug-induced slumber.

Your fork is up and running on my testing node.

I see your public.us-east.relay.mattcorallo.com (168.235.65.115) is connected as a bitcoin peer (I used addnode in bitcoin.conf).

I do not see 168.235.65.115 as a peer in p2pool (which may not be where I should see it).

I looked through the p2pool console output for "RELAY NETWORK" and did not see it anywhere.

How can I verify p2pool has connected to the relay network?

Again, thanks!
Remove the addnode and run p2pool with --relay-network public.YOUR_REGION.relay.mattcorallo.com

all I get with this is
unrecognized argument --relay-network
Huh any advise?
kgb2mining
Member
**
Offline Offline

Activity: 112


View Profile
August 29, 2014, 06:47:02 PM
 #10431

all I get with this is
unrecognized argument --relay-network
Huh any advise?
Did you pull down Matt's full p2pool git repo and use that instead of the original source from forrestv?  If not try that.  If no, not sure.

jonnybravo0311
Legendary
*
Offline Offline

Activity: 1008


Mine at Jonny's Pool


View Profile WWW
August 29, 2014, 06:51:34 PM
 #10432

How often does p2pool query namecoind getblockaux? I would like to make sure the namecoind internal recalculation time step makes sense.
Kiss
Can anyone answer this for phelix?  I haven't been able to dig through the code thoroughly to find any polling time. You can start in work.py to see the calls to get the merged work (around line 62):
Code:
      # MERGED WORK

        self.merged_work = variable.Variable({})

        @defer.inlineCallbacks
        def set_merged_work(merged_url, merged_userpass):
            merged_proxy = jsonrpc.HTTPProxy(merged_url, dict(Authorization='Basic ' + base64.b64encode(merged_userpass)))
            while self.running:
                auxblock = yield deferral.retry('Error while calling merged getauxblock on %s:' % (merged_url,), 30)(merged_proxy.rpc_getauxblock)()
                self.merged_work.set(math.merge_dicts(self.merged_work.value, {auxblock['chainid']: dict(
                    hash=int(auxblock['hash'], 16),
                    target='p2pool' if auxblock['target'] == 'p2pool' else pack.IntType(256).unpack(auxblock['target'].decode('hex')),
                    merged_proxy=merged_proxy,
                )}))
                yield deferral.sleep(1)
        for merged_url, merged_userpass in merged_urls:
            set_merged_work(merged_url, merged_userpass)

        @self.merged_work.changed.watch
        def _(new_merged_work):
            print 'Got new merged mining work!'

Jonny's Pool - Mine with us and help us grow!  Support a pool that supports Bitcoin, not a hardware manufacturer's pockets!  No SPV cheats.  No empty blocks.
bryonp
Member
**
Offline Offline

Activity: 77


View Profile
August 29, 2014, 06:58:43 PM
 #10433

all I get with this is
unrecognized argument --relay-network
Huh any advise?
Did you pull down Matt's full p2pool git repo and use that instead of the original source from forrestv?  If not try that.  If no, not sure.



THANK YOU... that did it... will see what happens...
kgb2mining
Member
**
Offline Offline

Activity: 112


View Profile
August 29, 2014, 07:23:48 PM
 #10434

THANK YOU... that did it... will see what happens...
Cool, glad it worked.  Smiley

It seems to be OK running on my node so far, let us know how it looks for you.
kgb2mining
Member
**
Offline Offline

Activity: 112


View Profile
August 29, 2014, 07:50:02 PM
 #10435

Stupid question - is it possible to setup a custom list of outgoing peer nods to talk to?  I've got the default 6, but I'm wondering if I should start tinkering with adding more.  There's probably a bunch of nice close fast nodes I could add in.
jonnybravo0311
Legendary
*
Offline Offline

Activity: 1008


Mine at Jonny's Pool


View Profile WWW
August 29, 2014, 07:58:16 PM
 #10436

Stupid question - is it possible to setup a custom list of outgoing peer nods to talk to?  I've got the default 6, but I'm wondering if I should start tinkering with adding more.  There's probably a bunch of nice close fast nodes I could add in.
When you start your node, use --p2pool-node argument.  For example:
Code:
./run_p2pool.py --p2pool-node 54.235.94.19:9333
By the way, that's windpath's node (located in VA).

Jonny's Pool - Mine with us and help us grow!  Support a pool that supports Bitcoin, not a hardware manufacturer's pockets!  No SPV cheats.  No empty blocks.
kgb2mining
Member
**
Offline Offline

Activity: 112


View Profile
August 29, 2014, 08:29:37 PM
 #10437

Stupid question - is it possible to setup a custom list of outgoing peer nods to talk to?  I've got the default 6, but I'm wondering if I should start tinkering with adding more.  There's probably a bunch of nice close fast nodes I could add in.
When you start your node, use --p2pool-node argument.  For example:
Code:
./run_p2pool.py --p2pool-node 54.235.94.19:9333
By the way, that's windpath's node (located in VA).
Thanks... Smiley

Is there a way to add multiples?  Just string them together on the commandline, or is there a simpler way maybe to put them in a file and read it in on startup?
PatMan
Hero Member
*****
Offline Offline

Activity: 924


Watch out for the "Neg-Rep-Dogie-Police".....


View Profile WWW
August 29, 2014, 09:01:16 PM
 #10438

Hey guys, any first impressions on Matts fork - how's it running? Well pleased it's in python too..... Smiley

"When one person is deluded it is called insanity - when many people are deluded it is called religion" - Robert M. Pirsig.  I don't want your coins, I want change.
Amazon UK BTC payment service - https://bitcointalk.org/index.php?topic=301229.0 - with FREE delivery!
http://www.ae911truth.org/ - http://rethink911.org/ - http://rememberbuilding7.org/
windpath
Legendary
*
Offline Offline

Activity: 938


View Profile WWW
August 29, 2014, 09:10:08 PM
 #10439

Check out https://github.com/TheBlueMatt/p2pool. Once I get some testing I'll pull request that and see if I can wake forrest from his drug-induced slumber.
...
How can I verify p2pool has connected to the relay network?
Remove the addnode and run p2pool with --relay-network public.YOUR_REGION.relay.mattcorallo.com

Thanks Matt!

Code:
Initializing work...
RELAY NETWORK: Connected to relay node with protocol version prioritized panther
RELAY NETWORK: Connected to bitcoind with protocol version 70002
RELAY NETWORK: Finished connect handshake with bitcoind
     ...success!

phelix
Legendary
*
Offline Offline

Activity: 1680


nmc:id/phelix


View Profile
August 29, 2014, 10:30:52 PM
 #10440

How often does p2pool query namecoind getblockaux? I would like to make sure the namecoind internal recalculation time step makes sense.
Kiss
Can anyone answer this for phelix?  I haven't been able to dig through the code thoroughly to find any polling time. You can start in work.py to see the calls to get the merged work (around line 62):
Code:
      # MERGED WORK

        self.merged_work = variable.Variable({})

        @defer.inlineCallbacks
        def set_merged_work(merged_url, merged_userpass):
            merged_proxy = jsonrpc.HTTPProxy(merged_url, dict(Authorization='Basic ' + base64.b64encode(merged_userpass)))
            while self.running:
                auxblock = yield deferral.retry('Error while calling merged getauxblock on %s:' % (merged_url,), 30)(merged_proxy.rpc_getauxblock)()
                self.merged_work.set(math.merge_dicts(self.merged_work.value, {auxblock['chainid']: dict(
                    hash=int(auxblock['hash'], 16),
                    target='p2pool' if auxblock['target'] == 'p2pool' else pack.IntType(256).unpack(auxblock['target'].decode('hex')),
                    merged_proxy=merged_proxy,
                )}))
                yield deferral.sleep(1)
        for merged_url, merged_userpass in merged_urls:
            set_merged_work(merged_url, merged_userpass)

        @self.merged_work.changed.watch
        def _(new_merged_work):
            print 'Got new merged mining work!'
Thanks for pointing me to the right place. Looks like it is sleeping one seconds between queries. From some other part in the code it seems the timeout is 5 seconds and it will retry up to a 30 times. OK.

blockchained.com ■ bitcointalk top posts
Pages: « 1 ... 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 [522] 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 ... 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!