Author

Topic: bitHopper: Python Pool Hopper Proxy - page 190. (Read 355816 times)

hero member
Activity: 504
Merit: 502
July 15, 2011, 06:34:10 PM
allright, was strange error randomly cropped up with permissions.

Wow knuckle award for me.
full member
Activity: 196
Merit: 100
July 15, 2011, 06:29:59 PM
1) Define mtred_user_apikey.

2) I fixed the difficulty pull to revert to a hard defined value. I'll fix it later.

3) I removed eclipsemc from the latest git version.

4) There is a vestigial database in the latest version. Ignore it. Its disabled and doesn't work.
hero member
Activity: 504
Merit: 502
July 15, 2011, 06:16:20 PM
yes, nothing changed from my previous bithopper version.

All I did was git pull to the latest version posted 20mins ago.
newbie
Activity: 19
Merit: 0
July 15, 2011, 06:11:01 PM
mmm just updated to latest git and bithopper just crash .

Code:
Traceback (most recent call last):
  File "./bitHopper.py", line 7, in
    import work
  File "/home/miner1/bitHopper/work.py", line 12, in
    from bitHopper import *
  File "/home/miner1/bitHopper/bitHopper.py", line 9, in
    import stats
  File "/home/miner1/bitHopper/stats.py", line 6, in
    import pool
  File "/home/miner1/bitHopper/pool.py", line 21, in
    'api_address':'https://mtred.com/api/user/key/' + mtred_user_apikey,
NameError: name 'mtred_user_apikey' is not defined


do you have mtred_user_apikey defined in password.py?
hero member
Activity: 504
Merit: 502
July 15, 2011, 05:59:48 PM
mmm just updated to latest git and bithopper just crash .

Code:
Traceback (most recent call last):
  File "./bitHopper.py", line 7, in
    import work
  File "/home/miner1/bitHopper/work.py", line 12, in
    from bitHopper import *
  File "/home/miner1/bitHopper/bitHopper.py", line 9, in
    import stats
  File "/home/miner1/bitHopper/stats.py", line 6, in
    import pool
  File "/home/miner1/bitHopper/pool.py", line 21, in
    'api_address':'https://mtred.com/api/user/key/' + mtred_user_apikey,
NameError: name 'mtred_user_apikey' is not defined

newbie
Activity: 40
Merit: 0
July 15, 2011, 05:24:33 PM
I think eclipsemc delays their API stats. On their website they say round duration is 4:51h but we just started mining there.
And you can clearly see in their graph that 20 min ago the first hoppers joined (raised from 60gh/s to 100gh/s.
So I guess the delay is 4:30h. I disabled eclipsemc for me.
member
Activity: 98
Merit: 10
July 15, 2011, 05:09:29 PM
Time to remove eclipsemc, they switched to a score system.
full member
Activity: 196
Merit: 100
July 15, 2011, 04:53:50 PM
1) Current delay?
current delay is 117 seconds. You can decrease it if you want. Most pools don't update their stats very frequently.
hero member
Activity: 504
Merit: 502
July 15, 2011, 04:13:03 PM
Btw what is the current delay set to for scanning new pool to hop to ?

Also is there any reason to not scan every 5 or even less seconds or is it to prevent pools from banning due to getting hammered?
hero member
Activity: 504
Merit: 502
July 15, 2011, 03:48:33 PM
I'm also going to be completely out of communication on saturday. We'll see if the database is ready by tonight.

If its not, I will simply have to cancel my subscription and request a refund Wink
full member
Activity: 196
Merit: 100
July 15, 2011, 03:10:09 PM
I'm also going to be completely out of communication on saturday. We'll see if the database is ready by tonight.
legendary
Activity: 924
Merit: 1004
Firstbits: 1pirata
July 15, 2011, 01:47:33 PM
I think its long overdue to say, great work so far c00w.

Good to know you are also human and require sleep Smiley

+1
hero member
Activity: 504
Merit: 502
July 15, 2011, 12:47:49 PM
I think its long overdue to say, great work so far c00w.

Good to know you are also human and require sleep Smiley
full member
Activity: 196
Merit: 100
July 15, 2011, 12:29:22 PM
1) Why haven't I added more pools? Specifically triple mining and whatever else has been posted?
I'm working on database stats for all pools we hop. And sleeping.

2)Why did I disable bclc for everyone?
The pool operator annoyed me, was rude and boorish and I didn't want to give him my business.

3) Changing backup pools to info breaks things?
Well yeah. They have no api in the servers dictionary so when it tries to pull it an error appears.

4) I jump to arstechnica then back to bitp.it?
The backup pools have a fair algorithm so it doesn't matter. They are used when no other pool is good. If only 1 pool is good i.e. bitp.it and we have a little network trouble it'll jump from the pool it can't connect to and use the next pool (backup) until the best pool comes back up.

5) How to hop deepbit or btcguild with delayed stats?
Well they still use LP... I'm going to need some functions to look inside the data we send to the clients however which I haven't implemented.

6) Ignoring websites with regex?
I haven't been. I've mostly been sleeping. I'll throw on some with it after I get the stats database working or if someone submits a pull request.
legendary
Activity: 2618
Merit: 1007
July 15, 2011, 11:10:13 AM
To me they seem FAR too tiny (25 GH/s, only 2 blocks found) to not be a scam/trustworthy.

Got an API key by any chance? Also it might be that it just isn't JSON what this API delivers...
donator
Activity: 2058
Merit: 1007
Poor impulse control.
July 15, 2011, 09:47:30 AM
now that nofeemining.com are no longer protecting their stats with a captcha, i decided to add them (i added and defined nofee_user_apikey in passwords.py):

Code:
      'nofee':{'shares': default_shares, 'name': 'nofee',
           'mine_address': 'nofeemining.com:8332', 'user': nofee_user,
           'pass': nofee_pass, 'lag': False, 'LP': None,
           'api_address':'https://www.nofeemining.com/api.php?key=' + nofee_user_apikey, 'role':'mine'}
...

def nofee_sharesResponse(response):
    global servers
    info = json.loads(response)
    round_shares = int(info['poolRoundShares'])
    servers['nofee']['shares'] = round_shares
    bitHopper.log_msg('nofee:' + FormatShares(round_shares))

...

'nofee':nofee_sharesResponse,

but i get the following error:


Code:
"[Failure instance: Traceback: : No JSON object could be decoded\n/usr/lib/python2.6/dist-packages/twisted/internet/defer.py:1076:gotResult\n/usr/lib/python2.6/dist-packages/twisted/internet/defer.py:1063:_inlineCallbacks\n/usr/lib/python2.6/dist-packages/twisted/internet/defer.py:361:callback\n/usr/lib/python2.6/dist-packages/twisted/internet/defer.py:455:_startRunCallbacks\n---  ---\n/usr/lib/python2.6/dist-packages/twisted/internet/defer.py:542:_runCallbacks\n/home/user/bitHopper/pool.py:195:selectsharesResponse\n/home/user/bitHopper/pool.py:169:nofee_sharesResponse\n/usr/lib/python2.6/json/__init__.py:307:loads\n/usr/lib/python2.6/json/decoder.py:319:decode\n/usr/lib/python2.6/json/decoder.py:338:raw_decode\n]"

the api definitely works from curl and wget, and the identifier is 'poolRoundShares'.

no fee mining is a prop pool that proudly proclaim on their website :"no pool hopping protection" !  they want us bad. i like being wanted. So any ideas on a fix?
legendary
Activity: 924
Merit: 1004
Firstbits: 1pirata
July 15, 2011, 07:44:52 AM
Just found a little bug: when "backup" servers are changed to "info" the script refuses to work properly blaiming it on json stats.

@c00w would be nice to leave at our decision with pools are banning or not. Yes, I´m aware it happened to you but ppl were using your credentials from different ip´s, simulating a botnet jeje
donator
Activity: 2058
Merit: 1007
Poor impulse control.
July 15, 2011, 07:19:02 AM
holy crap, mt red does it again!

legendary
Activity: 2618
Merit: 1007
July 15, 2011, 06:58:43 AM
It might need some tiny adjustments (I think the log function is now in a different module) but it should/does work...
hero member
Activity: 504
Merit: 502
July 15, 2011, 06:53:35 AM
found your post, thanks.
Jump to: