Author

Topic: bitHopper: Python Pool Hopper Proxy - page 172. (Read 355689 times)

hero member
Activity: 504
Merit: 502
July 20, 2011, 11:26:40 AM
did bitclockers get completely disabled in the latest test build, ryouiki?

i'd removed bitclockers on 2e5188.. build (4 hours ago) by mistake
bitclockers is back after f7a2a2.. build (2 hours ago)


Bit unrelated to recent discussions but have you figured out what bitcoinpool is doing to their shares yet, or atleast which shares to work from. json shares looks more realistic but it seems they payout based on the website shares/elapsedtime and those stats are totally out of wack.

Also this is prob more directed to c00w/flower/ryo, any idea yet how to capture the counting current round_shares for x8s ?
newbie
Activity: 33
Merit: 0
July 20, 2011, 11:23:13 AM
did bitclockers get completely disabled in the latest test build, ryouiki?

i'd removed bitclockers on 2e5188.. build (4 hours ago) by mistake
bitclockers is back after f7a2a2.. build (2 hours ago)

edit : oops, test branch is not fixed yet.. i'll fix it asap fixed. thanks
hero member
Activity: 504
Merit: 502
July 20, 2011, 11:23:06 AM
For pools that don't show round shares, but show duration and hashrate, we can estimate the # of shares:

Total_Hash/s = (((Current_Shares - Shares_Before_Delta) * 2^32) / Delta)

Assume we compare from the start of the round, so
Total_Hash/s = ((Current_Shares) * 2^32)) / Round_Duration
Current_Shares = Total_Hash/s * Round_Duration / 2^32

And then apply some factor to during depending on stats delay...

Thoughts?


the estimator is already implemented in my bitHopper mod (for btcg), but it don't work good because the estimation is always based on ~1 hour delay.

you can try (just enable btcg) but you will be dissapointed with real earning Sad

One thing that confuse me with btcguild atm is the fact that my shares value drop to 0 , I dont think they use normal prop anymore since there is no way shares could become worth 0 within prop, no matter how long a round may last.

Only thing I can think of why the my account display 0 is cause it shows the actual round in progress earnings and is unrelated to any other fake(delayed) stats on the website.

full member
Activity: 168
Merit: 100
July 20, 2011, 11:15:39 AM
did bitclockers get completely disabled in the latest test build, ryouiki?
newbie
Activity: 33
Merit: 0
July 20, 2011, 11:09:52 AM
For pools that don't show round shares, but show duration and hashrate, we can estimate the # of shares:

Total_Hash/s = (((Current_Shares - Shares_Before_Delta) * 2^32) / Delta)

Assume we compare from the start of the round, so
Total_Hash/s = ((Current_Shares) * 2^32)) / Round_Duration
Current_Shares = Total_Hash/s * Round_Duration / 2^32

And then apply some factor to during depending on stats delay...

Thoughts?


the estimator is already implemented in my bitHopper mod (for btcg), but it don't work good because the estimation is always based on ~1 hour delay.

you can try (just enable btcg) but you will be dissapointed with real earning Sad
hero member
Activity: 504
Merit: 502
July 20, 2011, 09:58:44 AM
For pools that don't show round shares, but show duration and hashrate, we can estimate the # of shares:

Total_Hash/s = (((Current_Shares - Shares_Before_Delta) * 2^32) / Delta)

Assume we compare from the start of the round, so
Total_Hash/s = ((Current_Shares) * 2^32)) / Round_Duration
Current_Shares = Total_Hash/s * Round_Duration / 2^32

And then apply some factor to during depending on stats delay...

Thoughts?


Doable except pools who dont show round shares also dont tell you exactly when round started(sometimes current round is delayed by an hour)
newbie
Activity: 42
Merit: 0
July 20, 2011, 09:21:59 AM
For pools that don't show round shares, but show duration and hashrate, we can estimate the # of shares:

Total_Hash/s = (((Current_Shares - Shares_Before_Delta) * 2^32) / Delta)

Assume we compare from the start of the round, so
Total_Hash/s = ((Current_Shares) * 2^32)) / Round_Duration
Current_Shares = Total_Hash/s * Round_Duration / 2^32

And then apply some factor to during depending on stats delay...

Thoughts?
hero member
Activity: 504
Merit: 502
July 20, 2011, 07:36:25 AM
thanks, works.
newbie
Activity: 33
Merit: 0
July 20, 2011, 07:24:06 AM

Wanna add the code to your git code Smiley

test branch has it
hero member
Activity: 504
Merit: 502
July 20, 2011, 06:20:06 AM
dunno bout checking user-agent, ive assigned a specific browser proper user-agent and still get wrong stats from bitcoins.lc/stats page

Cant we use the stats.json page to read the shares ?

yes. their stats.json works fine (for web browser and my test build of bitHopper Mod)

Wanna add the code to your git code Smiley
newbie
Activity: 33
Merit: 0
July 20, 2011, 06:11:55 AM
dunno bout checking user-agent, ive assigned a specific browser proper user-agent and still get wrong stats from bitcoins.lc/stats page

Cant we use the stats.json page to read the shares ?

yes. their stats.json works fine (for web browser and my test build of bitHopper Mod)
hero member
Activity: 504
Merit: 502
July 20, 2011, 06:03:39 AM
dunno bout checking user-agent, ive assigned a specific browser proper user-agent and still get wrong stats from bitcoins.lc/stats page

Cant we use the stats.json page to read the shares ?
newbie
Activity: 33
Merit: 0
July 20, 2011, 05:57:57 AM

Some regex code would be nice to read from the actual stats page(these seem to add up correctly), I have no idea where there current share stats come from since I cant find the bithopper reported shares on the website.

That said, is there any reason yet not to hop bitcoins.lc ?

bclc checks user-agent string and give real data for Web browser, fake data for hopper proxy

sure, we can fake user-agent string to get real data but they will fake again..
this is endless.
hero member
Activity: 504
Merit: 502
July 20, 2011, 05:16:29 AM
Quick update to anyone who is mining at bitcoins.lc.  Looks like they are giving out random share data right now causing the hopper to mine there.  Shared went from 10k to 90k to 60k to 80k to 70k to 26k.  Make sure to disable them.  IDK if any of the forks handle bitcoins.lc differently, ie not through the api.

Some regex code would be nice to read from the actual stats page(these seem to add up correctly), I have no idea where there current share stats come from since I cant find the bithopper reported shares on the website.

That said, is there any reason yet not to hop bitcoins.lc ?
newbie
Activity: 33
Merit: 0
July 20, 2011, 01:45:18 AM
thanks, hawks5999

i've been doing this for my own purpose (studying python, git) and fun.
btw, i must go back to my daytime job for a while  Cry
fortunately, current version looks stable for casual use

I really appreciate to c00w and flower for foundation codes
newbie
Activity: 33
Merit: 0
July 20, 2011, 01:03:01 AM
latest version will display pool speeds
because, it is estimated speed based on round share trend, it may be different from the speed value provided by pool

full member
Activity: 168
Merit: 100
July 20, 2011, 12:54:32 AM
hats off to c00w, flower and ryouiki. You guys have made some awesome progress working together separately. Really demonstrates some of the power of open source development.

What is really amazing to me is seeing the implementation of features that shortly after I "think" of them, before I can even suggest them. The webgui control is awesome. The enable, disable feature in the webgui - super. Can't wait to see what else lies ahead.

c00w major kudos for a solid and getting firmer foundation.
full member
Activity: 196
Merit: 100
July 19, 2011, 11:54:03 PM
1) Working changes into master branch?
Yeah. I just got permission from flower who was sick to merge his changes over.
Once I get that merged over I'll talk to ryou about his stuff and I'll add in the manual payout entry and try and script some.

2) So what have you been doing over the last two days?
Database changes, Stability changes, code reorg, a flat info page, dynamic api polling changes, oh and the difficulty module now will deal with changing difficulty correctly.
So the main code is really solid now.
newbie
Activity: 53
Merit: 0
July 19, 2011, 11:43:15 PM
Having a little problem when I try to access the stats. I get the message

Code:
web.Server Traceback (most recent call last):

: [Errno 2] No such file or directory: 'index.html'

Using latest version of ryouiki's fork

possible cause

1. index.html is not there (same directory as bitHopper.py)
2. working (current) directory is not the correct
3. do not have permission to read file

in case of 2.
modify this line to point the absolute path
Code:
file = open('index.html', 'r')
as
Code:
file = open('/root/dev/blahblah/index.html', 'r')


Had to change the working directory manually set to the full path of the folder. Thanks! Weird that I had to do that though.
newbie
Activity: 33
Merit: 0
July 19, 2011, 11:35:05 PM
in the latest version you can enable/disable pool interactively



however, enabling not implemented pools like x8s will cause error
try at your own risk  Wink
Jump to: