Pages:
Author

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

newbie
Activity: 11
Merit: 0
Quote
Are you using the most recent version of 1mb_segwit? Can you post the log output in code tags?

I'm unsure how to check the 1mb_segwit. I'm used 'git clone https://github.com/jtoomim/p2pool' to get the program, is the 1mb_segwit part of that download or is there a command I'm missing?
Code:
cd p2pool
git checkout 1mb_segwit

The git checkout 1mb_segwit didn't work initially so I deleted p2pool and re-cloned it. I did the git checkout 1mb_segwit again and now it seems to be running. I'll let it synchronise through the night and see how its going in the morning. Thank you all for the help.

James.
legendary
Activity: 1308
Merit: 1011
Quote
Are you using the most recent version of 1mb_segwit? Can you post the log output in code tags?

I'm unsure how to check the 1mb_segwit. I'm used 'git clone https://github.com/jtoomim/p2pool' to get the program, is the 1mb_segwit part of that download or is there a command I'm missing?
Code:
cd p2pool
git checkout 1mb_segwit
newbie
Activity: 11
Merit: 0
Quote
Are you using the most recent version of 1mb_segwit? Can you post the log output in code tags?

I'm unsure how to check the 1mb_segwit. I'm used 'git clone https://github.com/jtoomim/p2pool' to get the program, is the 1mb_segwit part of that download or is there a command I'm missing?

Code:
2017-12-21 21:10:11.449563 p2pool (version 15.0-47-gaf1f8b1-dirty)
2017-12-21 21:10:11.449646
2017-12-21 21:10:11.449694 Testing bitcoind RPC connection to 'http://127.0.0.1:8332/' with username ''...
2017-12-21 21:10:11.835311     ...success!
2017-12-21 21:10:11.835398     Current block hash: 19f50533dfba877c161bfeafbb015b814067588174a990
2017-12-21 21:10:11.835435     Current block height: 500440
2017-12-21 21:10:11.835465
2017-12-21 21:10:11.835506 Testing bitcoind P2P connection to '127.0.0.1:8333'...
2017-12-21 21:10:11.837234     ...success!
2017-12-21 21:10:11.837282
2017-12-21 21:10:11.837331 Determining payout address...
2017-12-21 21:10:11.837410     Loaded cached address: 1Asw8HFnx5T5VLrHyS8QQGKnL6hGzXUUPy...
2017-12-21 21:10:11.839894     ...success! Payout address: 1Asw8HFnx5T5VLrHyS8QQGKnL6hGzXUUPy
2017-12-21 21:10:11.839941
2017-12-21 21:10:11.839980 Loading shares...
2017-12-21 21:10:11.840100 Share loading took 0.000 seconds
2017-12-21 21:10:11.840149     ...done loading 0 shares (0 verified)!
2017-12-21 21:10:11.840177
2017-12-21 21:10:11.840206 Initializing work...
2017-12-21 21:10:12.202098     ...success!
2017-12-21 21:10:12.202241
2017-12-21 21:10:12.202292 Joining p2pool network using port 9333...
2017-12-21 21:10:12.476768     ...success!
2017-12-21 21:10:12.476839
2017-12-21 21:10:12.477027 Listening for workers on '' port 9332...
2017-12-21 21:10:12.567105     ...success!
2017-12-21 21:10:12.567166
2017-12-21 21:10:12.567199 Started successfully!
2017-12-21 21:10:12.567231 Go to http://127.0.0.1:9332/ to view graphs and statistics!
2017-12-21 21:10:12.567267 Donating 1.0% of work towards P2Pool's development. Thank you!
2017-12-21 21:10:12.567304 You can increase this amount with --give-author argument! (or decrease it, if you must)
2017-12-21 21:10:12.567332
2017-12-21 21:10:42.567489 P2Pool: 0 shares in chain (0 verified/0 total) Peers: 0 (0 incoming)
2017-12-21 21:10:42.567584  Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???
2017-12-21 21:10:51.979661 Handshake timed out, disconnecting from 208.84.223.121:9336
2017-12-21 21:11:12.567707 P2Pool: 0 shares in chain (0 verified/0 total) Peers: 0 (0 incoming)
2017-12-21 21:11:12.567786  Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???
2017-12-21 21:11:42.567906 P2Pool: 0 shares in chain (0 verified/0 total) Peers: 0 (0 incoming)
2017-12-21 21:11:42.567996  Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???
2017-12-21 21:11:56.637840 Handshake timed out, disconnecting from 208.84.223.121:9334
2017-12-21 21:12:12.568152 P2Pool: 0 shares in chain (0 verified/0 total) Peers: 0 (0 incoming)
2017-12-21 21:12:12.568259  Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???
2017-12-21 21:12:41.939632 Peer 72.14.191.28:9333 says protocol version is 1600, client version 16.0-4-gde1be30-dirty
2017-12-21 21:12:41.939758 Peer 72.14.191.28:9333 misbehaving, will drop and ban. Reason: peer too old
2017-12-21 21:12:41.939815 Bad peer banned: (u'72.14.191.28', 9333)
2017-12-21 21:12:41.940003 Peer 72.14.191.28:9333 misbehaving, will drop and ban. Reason: first message was not version message
2017-12-21 21:12:41.940080 Bad peer banned: (u'72.14.191.28', 9333)
2017-12-21 21:12:41.940230 Peer 72.14.191.28:9333 misbehaving, will drop and ban. Reason: first message was not version message
2017-12-21 21:12:41.940304 Bad peer banned: (u'72.14.191.28', 9333)
2017-12-21 21:12:42.568382 P2Pool: 0 shares in chain (0 verified/0 total) Peers: 0 (0 incoming)
2017-12-21 21:12:42.568445  Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???
2017-12-21 21:12:46.463634 Handshake timed out, disconnecting from 208.84.223.121:9336
2017-12-21 21:13:12.568592 P2Pool: 0 shares in chain (0 verified/0 total) Peers: 0 (0 incoming)
2017-12-21 21:13:12.568683  Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???
2017-12-21 21:13:14.522222 Handshake timed out, disconnecting from 208.84.223.121:9334
2017-12-21 21:13:42.569292 P2Pool: 0 shares in chain (0 verified/0 total) Peers: 0 (0 incoming)
2017-12-21 21:13:42.569391  Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???
2017-12-21 21:14:02.095014 Handshake timed out, disconnecting from 208.84.223.121:9336
2017-12-21 21:14:12.569536 P2Pool: 0 shares in chain (0 verified/0 total) Peers: 0 (0 incoming)
2017-12-21 21:14:12.569628  Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???
2017-12-21 21:14:13.280343 Handshake timed out, disconnecting from 208.84.223.121:9336
2017-12-21 21:14:39.100831 Handshake timed out, disconnecting from 208.84.223.121:9334
2017-12-21 21:14:42.569788 P2Pool: 0 shares in chain (0 verified/0 total) Peers: 0 (0 incoming)
2017-12-21 21:14:42.569884  Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???
2017-12-21 21:15:02.472063 Handshake timed out, disconnecting from 208.84.223.121:9334
2017-12-21 21:15:12.570019 P2Pool: 0 shares in chain (0 verified/0 total) Peers: 0 (0 incoming)
2017-12-21 21:15:12.570106  Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???
2017-12-21 21:15:42.570256 P2Pool: 0 shares in chain (0 verified/0 total) Peers: 0 (0 incoming)
2017-12-21 21:15:42.570357  Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???
2017-12-21 21:15:48.179448 Handshake timed out, disconnecting from 208.84.223.121:9334

Thanks for your help.
James.
hero member
Activity: 818
Merit: 1006
I'm able to access 208.84.223.121:9334 from a browser on the PC that I'm running jtoomim on. But when i run ./run_p2pool.py I'm still getting the handshake error.
Are you using the most recent version of 1mb_segwit? Can you post the log output in code tags?
hero member
Activity: 818
Merit: 1006
Amazing. On jtoomimnet BTC, transaction fees are almost equal to the block subsidy:
Code:
Current block value: 24.32189198 BTC Expected time to block: 17.2 days

Mainnet BTC, for comparison:
Code:
Current block value: 19.10029498 BTC Expected time to block: 75.5 days
newbie
Activity: 11
Merit: 0
Quote
208.84.223.121:9334 is live and running. If you can't connect to it, there's a problem on your end, possibly with your firewall configuration or your internet connectivity. You should be able to browse 208.84.223.121:9334 in a web browser, for example.

Hi Jtoomim,

I'm able to access 208.84.223.121:9334 from a browser on the PC that I'm running jtoomim on. But when i run ./run_p2pool.py I'm still getting the handshake error.

Any thoughts what I may need to look at? I thought about opening a port, but its happy to run mainnet without the port open.

Thank you.
James.
newbie
Activity: 32
Merit: 0
Also, now that nicehash is back, I think I may give renting hash from them another go. It seems even adding WALLET+DIFF(lowest they will allow >= 524288),  nicehash is still giving me an error when trying to connect to a p2pool node, saying diff is too LOW. Any way around this? Scrypt hashing power.
legendary
Activity: 4592
Merit: 1851
Linux since 1997 RedHat 4
...
The mining that is done in the last 30 seconds of each block interval can still be used to mine an actual block and pay all p2pool users, so it's not lost hashrate; it's merely unaccounted hashrate.
...
Which is why luck statistics of p2pool show higher than they really are.
hero member
Activity: 818
Merit: 1006
But overall, I'm starting to come up to conclusion that p2pool rejects ~20% of its hashrate overall?
mainnet p2pool will reject the last share mined in each block interval. For Litecoin, a share is mined roughly every 30 seconds and a block is mined roughly every 150 seconds, so this causes 30/150 = 20% of shares to get orphaned. P2pool will report "punishing share" and "block-stale detected!" when this happens. This effect happens to everybody almost equally, so it does not cause imbalance. The mining that is done in the last 30 seconds of each block interval can still be used to mine an actual block and pay all p2pool users, so it's not lost hashrate; it's merely unaccounted hashrate. However, if you are a large enough miner, you can mine another share on top of that when it happens to you and prevent your hashing from being unaccounted like everyone else's, so this mechanism *is* a centralization/selfish mining risk.

I eliminated this mechanism in jtoomimnet:

https://github.com/jtoomim/p2pool/commit/b57a4ff93e58c0702aa2481c164517e7290c8d43
https://bitcointalksearch.org/topic/m.18580559
newbie
Activity: 32
Merit: 0
Public node, average rejection rate 15-20%= 107.4% Efficiency
Private node, average rejection rate 3-6%= 122% Efficiency

predicted payouts seem to be generally the same between the two nodes when comparing. But explaining this to some miners is hard, all they see is rejection rates 15-20% and think bad things.
legendary
Activity: 1308
Merit: 1011
newbie
Activity: 32
Merit: 0
Jtoomim,
Im willing to help in any way that I can with p2pool LTC side of things, if needed. I have made some youtube videos lately sparking interest in a lot of people, showing them how p2pool is beneficial(well, hopefully I did =D). As you can tell, crypto is bigger now more than ever, and people really believe in a decentralized currency and mining it on p2pool.

I have been running my node with pypy over python as you suggested before and notice quite a difference. But overall, I'm starting to come up to conclusion that p2pool rejects ~20% of its hashrate overall? I know both of my nodes are between 95-100% efficiency, so thats good to know and to try to explain to some people. I have one public node that everyone is on and my own private one. Showing others the difference in possible predicted payout running their own node. But so far, it seems to honestly not really matter, overall. Again, let me know if you ever need my miners help and thanks again JToomim.
hero member
Activity: 818
Merit: 1006
How would one know if the p2pool network is getting attacked? It seems at times, over 100GH,while being only a 200-300GH network currently, can come jump on the p2pool LTC network and global rejection rates seems to spike. Rejections 30-40%, sometimes even 50% on some of the bigger nodes it seems. It could just be going crazy watching the networks numbers and trying to figure out whats going on. I know it would take someone with 50% or so of our hashrate to preform an attack. They would just submit mass invalid shares purposefully, correct?

It's far less likely to be an intentional attack than it is to be plain performance problems. The litecoin network has seen higher transaction volume recently, and that results in higher p2pool CPU load. If your CPU is not fast enough, it will take several seconds to process a share and issue new work to miners. Any work returned from your miners during that time will be considered DOA (dead) shares. Once you find a share, you have to send it to all of your peers, and they have to send it to all of theirs, etc. While the share is being propagated, there's a chance that someone else will mine a share that will out-propagate yours, which can cause your shares to be orphaned. Furthermore, each time mainnet p2pool changes blocks, the most recent share gets orphaned unless the person who mines the next share is the same as the person who mined that share. (This third effect was removed on jtoomimnet.) These three effects make p2pool biased towards miners with a lot of hashrate, and that bias increases as transaction volume increases. The first two biases are substantially reduced if node operators use CPUs with high single-threaded performance (e.g. Core i7 4790k, which runs at 4.4 GHz) and if they use pypy.

I've put in a lot of work on p2pool's code on jtoomimnet to reduce the CPU load of p2pool and reduce these biases, but I have not yet managed to get jtoomimnet working for Litecoin. It might be ready now, actually -- the most recent issue I had was the port conflict with Bitcoin Cash, which I fixed, but I haven't tested it since. However, the improvements I've made so far do not eliminate the problem, and probably only reduce it by about 50% or so. In the long term, there are a few major design changes I can make to p2pool to nearly completely eliminate this issue, but I have not had enough time to implement one yet.

The most important metric is your node's efficiency rating. If your efficiency is above 100%, you're gaining extra revenue at someone else's expense due to the average miner having more DOA and orphan shares than you. If it's below 100%, you're losing revenue because you have more DOAs and orphans than average. If your efficiency is 90%, for example, then you're effectively donating 10% of your potential revenue and hashrate to other miners who have better node hardware and maybe more hashrate than you. If you're not okay with that, then you should either upgrade your node hardware or (ugh) switch to a centralized pool.

The data you've described suggests that the new large miners are poorly configured (e.g. running on slow CPUs using CPython), and are losing revenue because of that. If that's the case, other miners are probably benefiting from their incompetence.

No, the smartest attack would not be to submit mass invalid shares purposefully. Attacks would probably take the form of submitting valid shares, but ignoring valid shares submitted by users other than the selfish miner. If this is the case, then the node that is selfishly mining will show a low-normal orphan and DOA rate, and everyone else will see normal DOA rates but high orphan rates.
hero member
Activity: 818
Merit: 1006
I've downloaded p2pool/jtoomim from Git and its running. Its been running a while (1hr~) showing 'p2pool is not connected to any peers' and 'Handshake timed out, disconnecting from 208.84.223.121:9334'
208.84.223.121:9334 is live and running. If you can't connect to it, there's a problem on your end, possibly with your firewall configuration or your internet connectivity. You should be able to browse 208.84.223.121:9334 in a web browser, for example.
newbie
Activity: 11
Merit: 0
Thank you Jtoomim for your reply.

I've downloaded p2pool/jtoomim from Git and its running. Its been running a while (1hr~) showing 'p2pool is not connected to any peers' and 'Handshake timed out, disconnecting from 208.84.223.121:9334'

Is there a way I can add known live peers/nodes?

Thank you.
James.
legendary
Activity: 2030
Merit: 1076
A humble Siberian miner
newbie
Activity: 32
Merit: 0
newbie
Activity: 46
Merit: 0
hi guys,
what is the web page for jtoomimnet thanks
newbie
Activity: 32
Merit: 0
Congrats on the block on jtoomimnet, way to stick it out! =] . But I have a question for anyone that could answer. How would one know if the p2pool network is getting attacked? It seems at times, over 100GH,while being only a 200-300GH network currently, can come jump on the p2pool LTC network and global rejection rates seems to spike. Rejections 30-40%, sometimes even 50% on some of the bigger nodes it seems. It could just be going crazy watching the networks numbers and trying to figure out whats going on. I know it would take someone with 50% or so of our hashrate to preform an attack. They would just submit mass invalid shares purposefully, correct?
hero member
Activity: 818
Merit: 1006
I think it's good to be active but you could also have done things in a way that did not increase the variance of those who stayed in main P2pool
I would have preferred to have made my modifications as part of p2pool master. However, the only other active contributor to p2pool at the time was opposed to that. Read https://github.com/p2pool/p2pool/issues/341 for more information.
Pages:
Jump to: