Bitcoin Forum
December 03, 2016, 01:47:10 PM *
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 ... 469 470 471 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 ... 744 »
  Print  
Author Topic: [1500 TH] p2pool: Decentralized, DoS-resistant, Hop-Proof pool  (Read 2029005 times)
kgb2mining
Member
**
Offline Offline

Activity: 112


View Profile
August 26, 2014, 01:13:44 AM
 #10361

If you're running RelayNodeClient.jar it looks like it's time to upgrade. I got the following email from the author, Matt Corallo:

Sorry for the inconvenience, please upgrade your relay client node as an
incompatible server change was made Sad. Still, fitting most blocks in
one TCP packet is probably worth it.

I'm waiting to hear back from him to see if he will be producing a .jar file, right now there's only RelayNodeClient.java.
If you're in conversation with him, can you ask whether the jar file is even needed?  Seems like putting it in the bitcoin.conf does the trick as well, or are there things within the jar that specifically aren't available by just peering using "addnode"?  If it's fine just peering, like PatMan said, one less thing to have to worry about especially with the associated java bloat.
1480772830
Hero Member
*
Offline Offline

Posts: 1480772830

View Profile Personal Message (Offline)

Ignore
1480772830
Reply with quote  #2

1480772830
Report to moderator
1480772830
Hero Member
*
Offline Offline

Posts: 1480772830

View Profile Personal Message (Offline)

Ignore
1480772830
Reply with quote  #2

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

Posts: 1480772830

View Profile Personal Message (Offline)

Ignore
1480772830
Reply with quote  #2

1480772830
Report to moderator
hamburgerhelper
Member
**
Offline Offline

Activity: 83


View Profile
August 26, 2014, 01:20:19 AM
 #10362

Good idea. I'll see what he says.
Matt Corallo
Hero Member
*****
Offline Offline

Activity: 751


View Profile
August 26, 2014, 01:31:58 AM
 #10363

Someone asked me this in email so I figured I'd copy the response here:

> Someone on the forum wanted me to ask if there's any advantage to
> running java RelayNodeClient versus simply connecting bitcoind to the
> Relay Network via "addnode"?

Yes, there is quite a huge advantage to it - namely if you connect to
your nearest Relay Network addnode you get the blocks relayed as normal
(ie the whole block is sent again), if you use the relay client (which,
despite it being java uses almost no memory/CPU, and can be easily kept
from growing its heap with -Xmx100m) the only thing relayed over the
wire is transactions you havent seen before, so it can (more often than
not) fit the entire block in one TCP packet. Also, addnode does not
reconnect very aggressively and, as such, if the relay node gets
restarted due to upgrade or whatever, you will likely lose the
connection and not end up reconnecting for a day or so, however the
relay network client will reconnect almost immediately.

If there is enough demand, I've been considering rewriting the relay network client in Rust/C++/whatever for those with concerns.

Matt

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

Activity: 83


View Profile
August 26, 2014, 01:35:49 AM
 #10364

^ That's what he says. Smiley
Matt Corallo
Hero Member
*****
Offline Offline

Activity: 751


View Profile
August 26, 2014, 01:38:49 AM
 #10365

On a related note, I usually dont monitor bitcointalk, but if you have any questions regarding the relay network, bitcoin-peering@ my full name.com is there to help.

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

Activity: 924


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


View Profile WWW
August 26, 2014, 01:41:01 AM
 #10366

Someone asked me this in email so I figured I'd copy the response here:

> Someone on the forum wanted me to ask if there's any advantage to
> running java RelayNodeClient versus simply connecting bitcoind to the
> Relay Network via "addnode"?

Yes, there is quite a huge advantage to it - namely if you connect to
your nearest Relay Network addnode you get the blocks relayed as normal
(ie the whole block is sent again), if you use the relay client (which,
despite it being java uses almost no memory/CPU, and can be easily kept
from growing its heap with -Xmx100m) the only thing relayed over the
wire is transactions you havent seen before, so it can (more often than
not) fit the entire block in one TCP packet. Also, addnode does not
reconnect very aggressively and, as such, if the relay node gets
restarted due to upgrade or whatever, you will likely lose the
connection and not end up reconnecting for a day or so, however the
relay network client will reconnect almost immediately.

If there is enough demand, I've been considering rewriting the relay network client in Rust/C++/whatever for those with concerns.

Matt

Thanks for clearing that up Matt!  I'm not a big fan of java tbh (as you can probably tell  Wink), so if you do get enough demand for the client in C++/whatever I'd definitely be interested in using that instead.

Nice one  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/
hamburgerhelper
Member
**
Offline Offline

Activity: 83


View Profile
August 26, 2014, 01:50:20 AM
 #10367

This may not be too useful since most people don't run CentOS7 / RHEL7, but here's a systemd script to run the RelayNodeClient application. Systemd has the very nice feature that it will restart the process if it dies, and all stdout messages can be monitored with "journalctl -f -u relaynodeclient". Put the text below into a file such as: /etc/systemd/system/relaynodeclient.service

Then change the following to appropriate values:

Change to the name of your bitcoind systemd unit file:
Code:
After=bitcoin.service

Change to the name of your relaynodeclient user and group:
Code:
User=YOURRELAYUSER
Group=YOURRELAYGROUP

Change to the Relay Network region closest to your p2pool node:
Code:
ExecStart=/bin/java -Xmx100m -jar /PATH/TO/RelayNodeClient.jar public.YOURRELAYREGION.relay.mattcorallo.com 127.0.0.1:8333

Code:
[Unit]
Description=relaynodeclient
After=network.target
After=bitcoin.service

[Service]
Type=simple
User=YOURRELAYUSER
Group=YOURRELAYGROUP
ExecStart=/bin/java -Xmx100m -jar /PATH/TO/RelayNodeClient.jar public.YOURRELAYREGION.relay.mattcorallo.com 127.0.0.1:8333
Restart=always

[Install]
WantedBy=multi-user.target

*Edited to add Matt's suggestion of limiting java's heap space to 100 MB to conserve RAM.
windpath
Legendary
*
Offline Offline

Activity: 938


View Profile WWW
August 26, 2014, 02:11:12 AM
 #10368

Someone asked me this in email so I figured I'd copy the response here:

....

Thank you very much Matt!!

PatMan
Hero Member
*****
Offline Offline

Activity: 924


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


View Profile WWW
August 26, 2014, 02:18:22 AM
 #10369

Change to the Relay Network region closest to your p2pool node:
Code:
ExecStart=/bin/java -Xmx100m -jar /PATH/TO/RelayNodeClient.jar public.YOURRELAYREGION.relay.mattcorallo.com 127.0.0.1:8333

Shouldn't this be:

Code:
ExecStart=/bin/java -Xmx100m -jar /PATH/TO/RelayNodeClient.jar public.YOURRELAYREGION.relay.mattcorallo.com:8335

 Huh

"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/
kgb2mining
Member
**
Offline Offline

Activity: 112


View Profile
August 26, 2014, 02:20:18 AM
 #10370

Indeed, thanks a bunch Matt and hamburgerhelper!  Very useful and appreciate the quick response.

Been away from java for a couple years, forgot about xms and xmx... that should help my 11G virt mem issue... Smiley
kgb2mining
Member
**
Offline Offline

Activity: 112


View Profile
August 26, 2014, 02:22:31 AM
 #10371

Change to the Relay Network region closest to your p2pool node:
Code:
ExecStart=/bin/java -Xmx100m -jar /PATH/TO/RelayNodeClient.jar public.YOURRELAYREGION.relay.mattcorallo.com 127.0.0.1:8333

Shouldn't this be:

Code:
ExecStart=/bin/java -Xmx100m -jar /PATH/TO/RelayNodeClient.jar public.YOURRELAYREGION.relay.mattcorallo.com:8335

 Huh
No, the above is right running the jar version... I believe it connects to your local bitcoind instance first, and interacts with it, relaying out to his server on 8335/8336.  At least that's the way I am running it, and it seems to work.

BTW for those running it on the commandline, don't forget "nohup ... &" if you're not running in the same screen as when you started p2pool.
PatMan
Hero Member
*****
Offline Offline

Activity: 924


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


View Profile WWW
August 26, 2014, 02:34:53 AM
 #10372

Right, didn't realise the jar version worked differently. So, from the command line my syntax would be:

Code:
nohup java -Xmx100m -jar /PATH/TO/RelayNodeClient.jar public.YOURRELAYREGION.relay.mattcorallo.com 127.0.0.1:8333 &

Is this correct? Don't I have to stipulate either port 8334 or 8335 anywhere?

Thanks  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/
hamburgerhelper
Member
**
Offline Offline

Activity: 83


View Profile
August 26, 2014, 02:35:48 AM
 #10373

kgb2mining is correct, the arguments to RelayNodeClient.jar include the host:port of your local bitcoind and the port for the Relay Network host is not required. The java application connects on 8336 only:

Code:
[root@p2pool ~]# netstat -a |grep relay
tcp6       0      0 p2pool.domain.:45203 do-nyc1.relay.matt:8336 ESTABLISHED

Glad I could help make p2pool that much more awesome! Kudos to Matt for reaching out to me and the thread to announce the upgrade, clear up our questions, and most importantly his massive improvement to the Bitcoin network.
kgb2mining
Member
**
Offline Offline

Activity: 112


View Profile
August 26, 2014, 02:37:08 AM
 #10374

Right, didn't realise the jar version worked differently. So, from the command line my syntax would be:

Code:
nohup java -Xmx100m -jar /PATH/TO/RelayNodeClient.jar public.YOURRELAYREGION.relay.mattcorallo.com 127.0.0.1:8333 &

Is this correct?

Thanks  Smiley
Yep, that's exactly how I'm running it at the moment on my node (although I still need to add the xmx part).
Matt Corallo
Hero Member
*****
Offline Offline

Activity: 751


View Profile
August 26, 2014, 02:39:31 AM
 #10375

Sorry for the issues (still working out the new protocol from last night...), but if you're using the jar, you should update to the latest version ("fuck it, ship it").

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

Activity: 83


View Profile
August 26, 2014, 02:45:54 AM
 #10376

Ha!

Code:
Aug 25 22:44:32 p2pool.domain.name java[13614]: Aug 25, 2014 10:44:32 PM com.google.bitcoin.core.Peer processVersionMessage
Aug 25 22:44:32 p2pool.domain.name java[13614]: INFO: Connected to 127.0.0.1: version=70002, subVer='/Satoshi:0.9.2.1/', services=0...=317494
Aug 25 22:44:32 p2pool.domain.name java[13614]: Connected to local bitcoind!
Aug 25 22:44:32 p2pool.domain.name java[13614]: Connected to node with version: fuck it, ship it!
Aug 25 22:44:35 p2pool.domain.name java[13614]: 1409021075219: Received transaction bdece7858e2fdaa412f904dae818db7b7591f290056eae9...428ac7f
PatMan
Hero Member
*****
Offline Offline

Activity: 924


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


View Profile WWW
August 26, 2014, 02:52:20 AM
 #10377

The java application connects on 8336 only:

Ahh, right. Got it  Smiley

Yep, that's exactly how I'm running it at the moment on my node (although I still need to add the xmx part).

Excellent, thanks for that  Smiley

Sorry for the issues (still working out the new protocol from last night...), but if you're using the jar, you should update to the latest version ("fuck it, ship it").

Great stuff - love the version name  Cheesy Cheesy

Thanks for the help everyone - job for tomorrow, I need sleeeeep  Wink

"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/
kgb2mining
Member
**
Offline Offline

Activity: 112


View Profile
August 26, 2014, 03:07:12 AM
 #10378

Just grabbed the new version, working perfectly.  Also adding -Xmx my virt mem went from 11GB down to 2GB usage, so I'm a happy camper.

Great work Matt!
EErik
Newbie
*
Offline Offline

Activity: 26


View Profile WWW
August 26, 2014, 11:45:25 AM
 #10379

hello I modified blixnood frontend making a version with a dark theme ... if someone likes you can download it from here https://github.com/erikyo/P2PoolExtendedFrontEnd

preview: http://2.234.55.84:9332/static/

No shares, no party!
bryonp
Member
**
Offline Offline

Activity: 77


View Profile
August 26, 2014, 11:48:52 AM
 #10380

Just grabbed the new version, working perfectly.  Also adding -Xmx my virt mem went from 11GB down to 2GB usage, so I'm a happy camper.

Great work Matt!


Hey guys, running windows 8.0 Bitcoin core and my p2pool node.
Is there anyway for me to get this all up and running with this sort of setup?
I cant figure out how you guys are doing this.

Must I be running lenox?

Any info would be much much appreciated....
Thanks.
Pages: « 1 ... 469 470 471 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 ... 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!