Author

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

legendary
Activity: 1344
Merit: 1024
Mine at Jonny's Pool
So I've been playing around with p2pool quite a bit, digging through code, modifying front end code to display things, etc.  I've got a question that I hope people can help answer:

How do I get more information into the JSON queries?

For example, in the global_stats, I see something like this:

{"min_difficulty": 479474.8692329195, "pool_stale_prop": 0.1111111111111111, "pool_hash_rate": 136727809739777.47, "pool_nonstale_hash_rate": 121535830879802.19}

How would I add to that to get things like "expected_time_to_block", "last_block_found", "total_network_hashrate"?

Currently I've fudged the first two by hooking into p2pool.info directly to retrieve the data, but I'd like to have it come from the global_stats.

Thanks for the help!

You can also check the code I use in mpoolmonitor in github.  I make use of p2pool stats extensively in there.

M

Thanks, I'll have a look.  I'm not much of a windows programmer - I think the last time I touched an MS development environment was about 12 years ago, but I'll take a look through the code to see some examples of what you've done.
member
Activity: 109
Merit: 10
"Warning: LOST CONTACT WITH BITCOIND "

Hi,

I'm having  a problem with my Dogecoin windows (32 bit) p2pool and would appreciate some help.

I installed Dogecoin p2pool for window by following these instructions:
http://www.reddit.com/r/dogemining/comments/1wmw3j/how_to_setup_p2pool_locally_windows

The pool was running great for a day when I started having connection issues.
For some reason connection to the p2pool or connection between the pool and the wallet QT is lost.
The connection is lost 2 or 3 min after starting the p2pool. After that it's on and off connection.

I disabled the firewall and anti-virus just to be sure its not blocking the connection, but that doesn't look like the cause.
Both uPnP in Windows and my router are turned on.

Here are some lines from my  log file:
Code:
2014-04-21 18:46:29.542000 Peer sent entire transaction 46d8afa3117bd5ded077d00259833063038ce8e58c80c3d79837a0dafe4110f5 that was already received
2014-04-21 18:46:29.542000 Peer sent entire transaction 46d8afa3117bd5ded077d00259833063038ce8e58c80c3d79837a0dafe4110f5 that was already received
2014-04-21 18:46:29.698000 Peer sent entire transaction 46d8afa3117bd5ded077d00259833063038ce8e58c80c3d79837a0dafe4110f5 that was already received
2014-04-21 18:46:31.601000 P2Pool: 5791 shares in chain (5441 verified/5795 total) Peers: 6 (0 incoming)
2014-04-21 18:46:31.601000  Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???
2014-04-21 18:46:31.601000  Shares: 0 (0 orphan, 0 dead) Stale rate: ??? Efficiency: ??? Current payout: 0.0000 DOGE
2014-04-21 18:46:31.601000  Pool: 1308MH/s Stale rate: 21.3% Expected time to block: 49.9 minutes
2014-04-21 18:48:10.053000 Lost peer 37.187.49.183:8555 - Connection to the other side was lost in a non-clean fashion.
2014-04-21 18:48:10.053000 Lost peer 67.11.62.236:8555 - Connection to the other side was lost in a non-clean fashion.
2014-04-21 18:48:10.053000 Lost peer 83.143.51.50:8555 - Connection to the other side was lost in a non-clean fashion.
2014-04-21 18:48:10.115000 Lost peer 108.48.45.12:22558 - Connection to the other side was lost in a non-clean fashion.
2014-04-21 18:48:10.115000 Lost peer 220.135.202.202:8555 - Connection to the other side was lost in a non-clean fashion.
2014-04-21 18:48:10.131000 > ########################################
2014-04-21 18:48:10.131000 > >>> Warning: LOST CONTACT WITH BITCOIND for 1.7 minutes! Check that it isn't frozen or dead!
2014-04-21 18:48:10.131000 > ########################################
2014-04-21 18:48:10.131000 P2Pool: 5795 shares in chain (5446 verified/5800 total) Peers: 1 (0 incoming)

Any ideas on how to debug would be appreciated.

Thank you!
legendary
Activity: 1540
Merit: 1001
So I've been playing around with p2pool quite a bit, digging through code, modifying front end code to display things, etc.  I've got a question that I hope people can help answer:

How do I get more information into the JSON queries?

For example, in the global_stats, I see something like this:

{"min_difficulty": 479474.8692329195, "pool_stale_prop": 0.1111111111111111, "pool_hash_rate": 136727809739777.47, "pool_nonstale_hash_rate": 121535830879802.19}

How would I add to that to get things like "expected_time_to_block", "last_block_found", "total_network_hashrate"?

Currently I've fudged the first two by hooking into p2pool.info directly to retrieve the data, but I'd like to have it come from the global_stats.

Thanks for the help!

You can also check the code I use in mpoolmonitor in github.  I make use of p2pool stats extensively in there.

M
sr. member
Activity: 434
Merit: 250
You can see an example of adding a miner_last_difficulties array, network_hashrate, and network_block_difficulty here:

https://github.com/forrestv/p2pool/pull/191/files

Much obliged!

My pleasure. We use those stats on a modified version of p2pool-node-status, you can see it here:

http://us-east.royalminingco.com:9332/static/
legendary
Activity: 1344
Merit: 1024
Mine at Jonny's Pool
So I've been playing around with p2pool quite a bit, digging through code, modifying front end code to display things, etc.  I've got a question that I hope people can help answer:

How do I get more information into the JSON queries?

For example, in the global_stats, I see something like this:

{"min_difficulty": 479474.8692329195, "pool_stale_prop": 0.1111111111111111, "pool_hash_rate": 136727809739777.47, "pool_nonstale_hash_rate": 121535830879802.19}

How would I add to that to get things like "expected_time_to_block", "last_block_found", "total_network_hashrate"?

Currently I've fudged the first two by hooking into p2pool.info directly to retrieve the data, but I'd like to have it come from the global_stats.

Thanks for the help!

You can see an example of adding a miner_last_difficulties array, network_hashrate, and network_block_difficulty here:

https://github.com/forrestv/p2pool/pull/191/files

Much obliged!
sr. member
Activity: 434
Merit: 250
So I've been playing around with p2pool quite a bit, digging through code, modifying front end code to display things, etc.  I've got a question that I hope people can help answer:

How do I get more information into the JSON queries?

For example, in the global_stats, I see something like this:

{"min_difficulty": 479474.8692329195, "pool_stale_prop": 0.1111111111111111, "pool_hash_rate": 136727809739777.47, "pool_nonstale_hash_rate": 121535830879802.19}

How would I add to that to get things like "expected_time_to_block", "last_block_found", "total_network_hashrate"?

Currently I've fudged the first two by hooking into p2pool.info directly to retrieve the data, but I'd like to have it come from the global_stats.

Thanks for the help!

You can see an example of adding a miner_last_difficulties array, network_hashrate, and network_block_difficulty here:

https://github.com/forrestv/p2pool/pull/191/files
legendary
Activity: 1344
Merit: 1024
Mine at Jonny's Pool
So I've been playing around with p2pool quite a bit, digging through code, modifying front end code to display things, etc.  I've got a question that I hope people can help answer:

How do I get more information into the JSON queries?

For example, in the global_stats, I see something like this:

{"min_difficulty": 479474.8692329195, "pool_stale_prop": 0.1111111111111111, "pool_hash_rate": 136727809739777.47, "pool_nonstale_hash_rate": 121535830879802.19}

How would I add to that to get things like "expected_time_to_block", "last_block_found", "total_network_hashrate"?

Currently I've fudged the first two by hooking into p2pool.info directly to retrieve the data, but I'd like to have it come from the global_stats.

Thanks for the help!
member
Activity: 116
Merit: 10
how to up p2pool node of Doubloons DBL coin??
sr. member
Activity: 454
Merit: 252
Will that mess up an apt-get install at all?

You might want to uninstall the old apt package so you don't accidentially run the wrong one at some point. But the binary is a standalone with no separate includes, libraries, etc needed. Just put the bitcoind wherever you want and run it from there directly.
Thanks, I went ahead and did that. For now I'll just stick to manual updates of bitcoind so I don't have to rely on the PPA.

PPA wasn't out of date. 0.9.1 only linked against the patched openSSL. there was no need to release a new version in the PPA since ubuntu patched it for you. There was a discussion about this on the mailing list. They probably should have released 0.9.1 into the PPA to clear up confusion, but 0.9 in the PPA is the same as home-built 0.9.1
member
Activity: 94
Merit: 10
Will that mess up an apt-get install at all?

You might want to uninstall the old apt package so you don't accidentially run the wrong one at some point. But the binary is a standalone with no separate includes, libraries, etc needed. Just put the bitcoind wherever you want and run it from there directly.
Thanks, I went ahead and did that. For now I'll just stick to manual updates of bitcoind so I don't have to rely on the PPA.
sr. member
Activity: 434
Merit: 250
Will that mess up an apt-get install at all?

You might want to uninstall the old apt package so you don't accidentially run the wrong one at some point. But the binary is a standalone with no separate includes, libraries, etc needed. Just put the bitcoind wherever you want and run it from there directly.
member
Activity: 94
Merit: 10
How do I manually update bitcoind on Ubuntu? apt-get is still out of date.
You need build it from sources. Clone git and make/qmake ;]

No, he don't. Linux binary is here:
https://bitcoin.org/bin/0.9.1/bitcoin-0.9.1-linux.tar.gz

Will that mess up an apt-get install at all?
newbie
Activity: 9
Merit: 0
I have a P2Pool node up and running and I've been testing it a few days. It's been running stable and I was wondering how I should publish it for other folks to use. It's running on a hosted server so latency should be low.  Doing some searches, I didn't find anything other than the announce to IRC channel switch (that didn't work). Any help would be appreciated, I just didn't want to throw it out there in the wrong place.

sr. member
Activity: 434
Merit: 250

I run the binary myself, works great. Compiling on my little amazon EC2 machines takes forever. Smiley
legendary
Activity: 1036
Merit: 1000
DARKNETMARKETS.COM
How do I manually update bitcoind on Ubuntu? apt-get is still out of date.
You need build it from sources. Clone git and make/qmake ;]

No, he don't. Linux binary is here:
https://bitcoin.org/bin/0.9.1/bitcoin-0.9.1-linux.tar.gz
legendary
Activity: 1361
Merit: 1003
Don`t panic! Organize!
How do I manually update bitcoind on Ubuntu? apt-get is still out of date.
You need build it from sources. Clone git and make/qmake ;]
hero member
Activity: 591
Merit: 500
I use bfgminer -http-port 8330 to proxy for an ASICMiner BE Cube and it works very well with p2pool.
this is Long Poll: inactive sheme, could you please check your Efficieny: ?%
Yeah, that's kinda the idea. BE Cubes wouldn't need a proxy if they supported stratum.
member
Activity: 94
Merit: 10
How do I manually update bitcoind on Ubuntu? apt-get is still out of date.
newbie
Activity: 43
Merit: 0
I use bfgminer -http-port 8330 to proxy for an ASICMiner BE Cube and it works very well with p2pool.
this is Long Poll: inactive sheme, could you please check your Efficieny: ?%
full member
Activity: 134
Merit: 100
I use bfgminer -http-port 8330 to proxy for an ASICMiner BE Cube and it works very well with p2pool.
Jump to: