NothinG
|
|
March 20, 2012, 02:41:06 AM Last edit: March 20, 2012, 07:39:19 AM by NothinG |
|
Okay, I'm pulling a copy of my site to code on. The power where I live is going on and off, thank god for laptops. When I get back or a few hours if the internet is still up, I should have: 1) Pool Cached Images Locally (Faster Page Loads) 2) Smoother Theme 3) Registration System (kind of a last thing I'll add, but at least a submission page) [Edit 1]: Just added Image Caching. Still working on loading bug if the servers are offline. [Edit 2]: Just figured out how to check if it is a BTC or LTC pool. $payoutAdd = file_get_contents("http://SERVER:PORT/payout_addr"); $poolType = substr($payoutAdd, 1, 1); if($poolType == "L") $poolType = "LTC"; elseif($poolType=="1") $poolType = "BTC"; else $poolType = "ERR: Detect Pool Type"; [Edit 3]: Added search (not very well implemented to the site...but it gets the job done): http://nodes.p2pmine.com/?poolType=BTChttp://nodes.p2pmine.com/?poolType=LTC-Image Caching is moved to every 5 minutes. If you want/need to see more up-to-date images, go check out the pool by clicking on the image's links. [Edit 4]: Added current hash rates per pool. Gotta <3 code...gotta love not sleeping. *snooze* [Edit 5]: From LTC: Page generated in 8.2375 seconds -> LTC: Page generated in 4.8374 seconds. After adding the page generated time, I am able to code a little better. I'll try to get 85% of page loads bellow 2 seconds if I can. For now; Sleep...
|
|
|
|
spiccioli
Legendary
Offline
Activity: 1379
Merit: 1003
nec sine labore
|
|
March 20, 2012, 07:45:10 AM |
|
[Edit 4]: Added current hash rates per pool. Gotta <3 code...gotta love not sleeping. *snooze*
NothingG, hash per pool means nothing, every p2pool entry point is part of p2pool as a whole, the only hash rate that matters is p2pool hash rate. You don't get any advantage choosing an entry point with 5GHs instead of one with 500MHs. spiccioli.
|
|
|
|
NothinG
|
|
March 20, 2012, 07:46:43 AM |
|
[Edit 4]: Added current hash rates per pool. Gotta <3 code...gotta love not sleeping. *snooze*
NothingG, hash per pool means nothing, every p2pool entry point is part of p2pool as a whole, the only hash rate that matters is p2pool hash rate. You don't get any advantage choosing an entry point with 5GHs instead of one with 500MHs. spiccioli. Maybe people want to spread the load. If X p2pool has 2Ghash/s but Y p2pool only has 1Ghash/s, I might want to go to Y to spread the load. That's the only reason I saw it to be useful. It can't do any harm, it's public information.
|
|
|
|
cabin
|
|
March 20, 2012, 03:42:29 PM |
|
NothingG,
Nice page!
Showing the stale rate or expected payout would be a useful addition.. pools with lower than average stale rates will earn more for their users. There is a JSON feed for stale rates, but I had to modify the p2pool code to display the expected payout (see my sig). I setup a simple info page for p2pool that can print it out but it is not standard.
|
|
|
|
NothinG
|
|
March 20, 2012, 03:51:20 PM |
|
NothingG,
Nice page!
Showing the stale rate or expected payout would be a useful addition.. pools with lower than average stale rates will earn more for their users. There is a JSON feed for stale rates, but I had to modify the p2pool code to display the expected payout (see my sig). I setup a simple info page for p2pool that can print it out but it is not standard.
Thanks. And, if you want to give me the math you used to get the expected payout I'll add it to my site. [Edit]: Something I didn't think about...I could just generated my own graphs using the JSON data I get. I'm not sure, just an idea I had.
|
|
|
|
cabin
|
|
March 20, 2012, 04:26:50 PM |
|
NothingG,
Nice page!
Showing the stale rate or expected payout would be a useful addition.. pools with lower than average stale rates will earn more for their users. There is a JSON feed for stale rates, but I had to modify the p2pool code to display the expected payout (see my sig). I setup a simple info page for p2pool that can print it out but it is not standard.
Thanks. And, if you want to give me the math you used to get the expected payout I'll add it to my site. [Edit]: Something I didn't think about...I could just generated my own graphs using the JSON data I get. I'm not sure, just an idea I had. Sure, I used code from somewhere else in p2pool.. it is this: efficiency = "%.02f percent" % (((1 - my_stale_prop)/(1 - pool_stale_prop))*100,) my_stale_prop is your stale rate, ie 0.05, pool_stale_prop is the pool stale rate, ie 0.10 Hmm I just saw that the standard local_stats feed is only for the past hour which would be quite variable. But still a little useful.
|
|
|
|
NothinG
|
|
March 21, 2012, 12:01:49 AM |
|
NothingG,
Nice page!
Showing the stale rate or expected payout would be a useful addition.. pools with lower than average stale rates will earn more for their users. There is a JSON feed for stale rates, but I had to modify the p2pool code to display the expected payout (see my sig). I setup a simple info page for p2pool that can print it out but it is not standard.
Thanks. And, if you want to give me the math you used to get the expected payout I'll add it to my site. [Edit]: Something I didn't think about...I could just generated my own graphs using the JSON data I get. I'm not sure, just an idea I had. Sure, I used code from somewhere else in p2pool.. it is this: efficiency = "%.02f percent" % (((1 - my_stale_prop)/(1 - pool_stale_prop))*100,) my_stale_prop is your stale rate, ie 0.05, pool_stale_prop is the pool stale rate, ie 0.10 Hmm I just saw that the standard local_stats feed is only for the past hour which would be quite variable. But still a little useful. I'm trying to code this up in PHP/JSON but can't find a pool that has non-null stales. So, it's hard to base it off of something. :\
|
|
|
|
cabin
|
|
March 21, 2012, 12:46:42 AM |
|
NothingG,
Nice page!
Showing the stale rate or expected payout would be a useful addition.. pools with lower than average stale rates will earn more for their users. There is a JSON feed for stale rates, but I had to modify the p2pool code to display the expected payout (see my sig). I setup a simple info page for p2pool that can print it out but it is not standard.
Thanks. And, if you want to give me the math you used to get the expected payout I'll add it to my site. [Edit]: Something I didn't think about...I could just generated my own graphs using the JSON data I get. I'm not sure, just an idea I had. Sure, I used code from somewhere else in p2pool.. it is this: efficiency = "%.02f percent" % (((1 - my_stale_prop)/(1 - pool_stale_prop))*100,) my_stale_prop is your stale rate, ie 0.05, pool_stale_prop is the pool stale rate, ie 0.10 Hmm I just saw that the standard local_stats feed is only for the past hour which would be quite variable. But still a little useful. I'm trying to code this up in PHP/JSON but can't find a pool that has non-null stales. So, it's hard to base it off of something. :\ Ya that sucks.. few pools will have stales in the past hour. Quick! this guy has a stale: http://p2pool.soon.it:9332/local_stats{ "miner_hash_rates": { "spiccioli.m2": 672878209.7066668 }, "my_stale_proportions_in_last_hour": { "orphan_stale": 0.5, "stale": 0.5, "dead_stale": 0 }, "my_hash_rates_in_last_hour": { "note": "DEPRECATED", "actual": 1789594554.303134, "rewarded": 981791456.874636, "nonstale": 894797277.151567 }, "miner_dead_hash_rates": { "spiccioli.m2": 21474836.48 }, "my_share_counts_in_last_hour": { "doa_stale_shares": 0, "stale_shares": 1, "orphan_stale_shares": 1, "shares": 2, "unstale_shares": 1 } }
I altered mine to track them forever.. my info page has similiar data and is currently showing 0.0's. 0.5 == 50%
|
|
|
|
NothinG
|
|
March 21, 2012, 01:58:44 AM Last edit: March 21, 2012, 04:06:23 AM by NothinG |
|
NothingG,
Nice page!
Showing the stale rate or expected payout would be a useful addition.. pools with lower than average stale rates will earn more for their users. There is a JSON feed for stale rates, but I had to modify the p2pool code to display the expected payout (see my sig). I setup a simple info page for p2pool that can print it out but it is not standard.
Thanks. And, if you want to give me the math you used to get the expected payout I'll add it to my site. [Edit]: Something I didn't think about...I could just generated my own graphs using the JSON data I get. I'm not sure, just an idea I had. Sure, I used code from somewhere else in p2pool.. it is this: efficiency = "%.02f percent" % (((1 - my_stale_prop)/(1 - pool_stale_prop))*100,) my_stale_prop is your stale rate, ie 0.05, pool_stale_prop is the pool stale rate, ie 0.10 Hmm I just saw that the standard local_stats feed is only for the past hour which would be quite variable. But still a little useful. I'm trying to code this up in PHP/JSON but can't find a pool that has non-null stales. So, it's hard to base it off of something. :\ Ya that sucks.. few pools will have stales in the past hour. Quick! this guy has a stale: http://p2pool.soon.it:9332/local_statsI altered mine to track them forever.. my info page has similiar data and is currently showing 0.0's. 0.5 == 50% $efficiency = (((1-$stalePropHr->{'stale'})/(1-$globalStats->{"pool_stale_prop"}))*100); Does that seem right? I've pushed this to my nodes list, so if it looks wrong let me know. I don't understand your code where it shows: [Edit]: Just added some JavaScript to the nodes list for even faster page-load times. "Page generated in 4.9437 seconds" Now, if I can just get it under 1 second...lol. [Edit 2]: Forgot to cache 1 remote call and saved a LOAD of the time. "Page generated in 1.1933 seconds." Still not under 1 second load times. xD
|
|
|
|
cereal7802
Newbie
Offline
Activity: 57
Merit: 0
|
|
March 21, 2012, 04:29:03 AM |
|
Chicago, Illinois::USA::66.90.82.155:9332::0.1::btc::CK p2pool::cereal7802
figured i would toss mine up for public use.
|
|
|
|
NothinG
|
|
March 21, 2012, 04:58:32 AM |
|
Chicago, Illinois::USA::66.90.82.155:9332::0.1::btc::CK p2pool::cereal7802
figured i would toss mine up for public use.
Doesn't seem like yours is public.
|
|
|
|
cereal7802
Newbie
Offline
Activity: 57
Merit: 0
|
|
March 21, 2012, 05:57:40 AM |
|
was a typo in my firewall rules. should be fine now.
|
|
|
|
NothinG
|
|
March 21, 2012, 06:04:17 AM |
|
was a typo in my firewall rules. should be fine now.
Okay, I've added your pool. It was a shame I had to round the fee's. xD Looked fine on my screen resolution; looks bad on smaller.
|
|
|
|
spiccioli
Legendary
Offline
Activity: 1379
Merit: 1003
nec sine labore
|
|
March 21, 2012, 07:56:45 AM |
|
NothingG,
Nice page!
Showing the stale rate or expected payout would be a useful addition.. pools with lower than average stale rates will earn more for their users. There is a JSON feed for stale rates, but I had to modify the p2pool code to display the expected payout (see my sig). I setup a simple info page for p2pool that can print it out but it is not standard.
Thanks. And, if you want to give me the math you used to get the expected payout I'll add it to my site. [Edit]: Something I didn't think about...I could just generated my own graphs using the JSON data I get. I'm not sure, just an idea I had. Sure, I used code from somewhere else in p2pool.. it is this: efficiency = "%.02f percent" % (((1 - my_stale_prop)/(1 - pool_stale_prop))*100,) my_stale_prop is your stale rate, ie 0.05, pool_stale_prop is the pool stale rate, ie 0.10 Hmm I just saw that the standard local_stats feed is only for the past hour which would be quite variable. But still a little useful. I'm trying to code this up in PHP/JSON but can't find a pool that has non-null stales. So, it's hard to base it off of something. :\ Ya that sucks.. few pools will have stales in the past hour. Quick! this guy has a stale: http://p2pool.soon.it:9332/local_statsI altered mine to track them forever.. my info page has similiar data and is currently showing 0.0's. 0.5 == 50% $efficiency = (((1-$stalePropHr->{'stale'})/(1-$globalStats->{"pool_stale_prop"}))*100); Does that seem right? I've pushed this to my nodes list, so if it looks wrong let me know. I don't understand your code where it shows: [Edit]: Just added some JavaScript to the nodes list for even faster page-load times. "Page generated in 4.9437 seconds" Now, if I can just get it under 1 second...lol. [Edit 2]: Forgot to cache 1 remote call and saved a LOAD of the time. "Page generated in 1.1933 seconds." Still not under 1 second load times. xD NothinG, I don't understand what kind of efficiency you're calculating, Local: 680MH/s in last 10.0 minutes Local dead on arrival: ~3.2% (1-9%) Expected time to share: 1.3 hours 2012-03-21 08:53:53.332823 Shares: 91 (2 orphan, 3 dead) Stale rate: ~5.5% (2-13%) Efficiency: ~104.0% (96-108%)
p2pool says I'm around 104% efficiency, while your page says 50%... spiccioli.
|
|
|
|
NothinG
|
|
March 21, 2012, 08:34:05 AM |
|
NothingG,
Nice page!
Showing the stale rate or expected payout would be a useful addition.. pools with lower than average stale rates will earn more for their users. There is a JSON feed for stale rates, but I had to modify the p2pool code to display the expected payout (see my sig). I setup a simple info page for p2pool that can print it out but it is not standard.
Thanks. And, if you want to give me the math you used to get the expected payout I'll add it to my site. [Edit]: Something I didn't think about...I could just generated my own graphs using the JSON data I get. I'm not sure, just an idea I had. Sure, I used code from somewhere else in p2pool.. it is this: efficiency = "%.02f percent" % (((1 - my_stale_prop)/(1 - pool_stale_prop))*100,) my_stale_prop is your stale rate, ie 0.05, pool_stale_prop is the pool stale rate, ie 0.10 Hmm I just saw that the standard local_stats feed is only for the past hour which would be quite variable. But still a little useful. I'm trying to code this up in PHP/JSON but can't find a pool that has non-null stales. So, it's hard to base it off of something. :\ Ya that sucks.. few pools will have stales in the past hour. Quick! this guy has a stale: http://p2pool.soon.it:9332/local_statsI altered mine to track them forever.. my info page has similiar data and is currently showing 0.0's. 0.5 == 50% $efficiency = (((1-$stalePropHr->{'stale'})/(1-$globalStats->{"pool_stale_prop"}))*100); Does that seem right? I've pushed this to my nodes list, so if it looks wrong let me know. I don't understand your code where it shows: [Edit]: Just added some JavaScript to the nodes list for even faster page-load times. "Page generated in 4.9437 seconds" Now, if I can just get it under 1 second...lol. [Edit 2]: Forgot to cache 1 remote call and saved a LOAD of the time. "Page generated in 1.1933 seconds." Still not under 1 second load times. xD NothinG, I don't understand what kind of efficiency you're calculating, Local: 680MH/s in last 10.0 minutes Local dead on arrival: ~3.2% (1-9%) Expected time to share: 1.3 hours 2012-03-21 08:53:53.332823 Shares: 91 (2 orphan, 3 dead) Stale rate: ~5.5% (2-13%) Efficiency: ~104.0% (96-108%)
p2pool says I'm around 104% efficiency, while your page says 50%... spiccioli. Still working out the bugs on it. Not really sure how its suppose to be calculated. I'll remove it for now.
|
|
|
|
cabin
|
|
March 21, 2012, 12:46:08 PM |
|
$efficiency = (((1-$stalePropHr->{'stale'})/(1-$globalStats->{"pool_stale_prop"}))*100); Does that seem right? I've pushed this to my nodes list, so if it looks wrong let me know. I don't understand your code where it shows: That looks right on your end. You can ignore the python string formatting in my example. But that data is rather useless since it covers only the last hour, it would be better if it counted them all since startup like the command line display does. Best to leave it out for now.
|
|
|
|
cabin
|
|
March 21, 2012, 11:04:55 PM |
|
$efficiency = (((1-$stalePropHr->{'stale'})/(1-$globalStats->{"pool_stale_prop"}))*100); Does that seem right? I've pushed this to my nodes list, so if it looks wrong let me know. I don't understand your code where it shows: That looks right on your end. You can ignore the python string formatting in my example. But that data is rather useless since it covers only the last hour, it would be better if it counted them all since startup like the command line display does. Best to leave it out for now. The efficiency will be reported in the next release: https://github.com/forrestv/p2pool/commit/3bfb1711d63a86b4b70ba5c4af2d212f8f668a71
|
|
|
|
check_status (OP)
Full Member
Offline
Activity: 196
Merit: 100
Web Dev, Db Admin, Computer Technician
|
|
March 22, 2012, 12:23:09 AM Last edit: March 22, 2012, 12:37:49 AM by check_status |
|
OP Updated
@NothinG Your site is coming along well. The loading for me took about a minute, was running youtube ATT. Edit: Page generated in 20.4329 seconds.
|
For Bitcoin to be a true global currency the value of BTC needs always to rise. If BTC became the global currency & money supply = 100 Trillion then ⊅1.00 BTC = $4,761,904.76. P2Pool Server List | How To's and Guides Mega List | 1 EndfedSryGUZK9sPrdvxHntYzv2EBexGA
|
|
|
check_status (OP)
Full Member
Offline
Activity: 196
Merit: 100
Web Dev, Db Admin, Computer Technician
|
|
March 22, 2012, 01:41:50 AM |
|
@RedEmerald Do you want me to add your Litecoin p2pool to the list? @flower1024 Are you mining Bitcoin or Litecoin? (see below) 'ltc': [{'avg': 0.06474859714508056, 'fee': '0', 'uptime': '286120.8974878788', 'url': 'http://litecoinp2pool.zapto.org:9327/'}, {'avg': 0.11364741325378418, 'fee': '0.5', 'uptime': '9371.9314050674438', 'url': 'http://p2pool.stitthappens.com:10336/'}, {'avg': 0.17731950283050538, 'fee': '0.0', 'uptime': '9841.089101076126', 'url': 'http://pool.k1024.de:80/'}], 'offline': ['http://bitpoppool.geekgalaxy.com:9332/', 'http://ot.knotwork.com:9332/', 'http://195.234.11.101:9332/'],
Courtesy of RedEmerald's .py script
Added updates of a few pool fees as reflected from RedEmeralds .py script. If you see any errors or ommission let me know. Cheers
|
For Bitcoin to be a true global currency the value of BTC needs always to rise. If BTC became the global currency & money supply = 100 Trillion then ⊅1.00 BTC = $4,761,904.76. P2Pool Server List | How To's and Guides Mega List | 1 EndfedSryGUZK9sPrdvxHntYzv2EBexGA
|
|
|
NothinG
|
|
March 22, 2012, 02:00:18 AM |
|
@NothinG Your site is coming along well. The loading for me took about a minute, was running youtube ATT. Edit: Page generated in 20.4329 seconds.
The first time the page loads it actually has to go to each site and make about 3 new JSON calls (might be able to shorten that to 2 JSON calls if I edit some of the script) and 3 new IMG calls with 1 cached IMG call ( I make 1 call to detect if an image is there which gets cached, that way if graphs are disabled no more calls for that pool will be made. That's why it takes ~20-25 seconds for the first page load. I do that about every 10 minutes. I guess I could use a cron job in the background to just visit the page to get new cache so everyone (unless highly unlucky) will get a cached version.
|
|
|
|
|