Author

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

hero member
Activity: 556
Merit: 500
July 19, 2011, 04:30:19 AM

nice, working well for me except ive been getting an error on mtred about the api key.


[03:52:01] Error in pool api for mtred[Failure instance: Traceback: : 'server'
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:1076:gotResult
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:1063:_inlineCallbacks
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:361:callback
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:455:_startRunCallbacks
--- ---
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:542:_runCallbacks
/home/jm/bithop/pool.py:203:selectsharesResponse
/home/jm/bithop/pool.py:170:mtred_sharesResponse
]


i guess you omitted mtred_user_apikey on password.py
for example) mtred_user_apikey = '995d432ec46141ae3f25db3aae688452'

I fixed it, apparently you have to hit save after generating the api key on the mtred site.
newbie
Activity: 33
Merit: 0
July 19, 2011, 04:28:23 AM

thx works great.

But i can't get nofeemining working, neither with "original" bitHopper nor your modded Version.

I always mess up the sharesRespons function, with the weekends Version of BitHopper everything was fine, but with the yesterdays Version its broken.


updated to support nofeemining

https://github.com/ryouiki/bitHopper
donator
Activity: 2058
Merit: 1007
Poor impulse control.
July 19, 2011, 04:19:41 AM
I made a personal bitHopper fork with following features

- Database logging for share / accept / reject per pool (you can plot chart with it)
- choose better backup pool (by accept rate)
- can use bitcoins.lc
- can use bitp.it
- can use polmine
- more stability

....
Try at your own risk  Wink

https://github.com/ryouiki/bitHopper
(you must edit password.py as usual)

thx works great.

But i can't get nofeemining working, neither with "original" bitHopper nor your modded Version.

I always mess up the sharesRespons function, with the weekends Version of BitHopper everything was fine, but with the yesterdays Version its broken.


You have no trailing comma in the old version:


Code:
           'api_address':'http://www.nofeemining.com/api.php?key=' + nofee_user_apikey, 'role':'mine'}
but you do have one in the new version:

            
Code:
	'api_address':'http://www.nofeemining.com/api.php?key=' + nofee_user_apikey,
'role':'mine'},

Are there any other pools after nofee in the new one?
newbie
Activity: 33
Merit: 0
July 19, 2011, 04:07:44 AM

nice, working well for me except ive been getting an error on mtred about the api key.


[03:52:01] Error in pool api for mtred[Failure instance: Traceback: : 'server'
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:1076:gotResult
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:1063:_inlineCallbacks
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:361:callback
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:455:_startRunCallbacks
--- ---
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:542:_runCallbacks
/home/jm/bithop/pool.py:203:selectsharesResponse
/home/jm/bithop/pool.py:170:mtred_sharesResponse
]


i guess you omitted mtred_user_apikey on password.py
for example) mtred_user_apikey = '995d432ec46141ae3f25db3aae688452'
nob
newbie
Activity: 23
Merit: 0
July 19, 2011, 04:06:09 AM
I made a personal bitHopper fork with following features

- Database logging for share / accept / reject per pool (you can plot chart with it)
- choose better backup pool (by accept rate)
- can use bitcoins.lc
- can use bitp.it
- can use polmine
- more stability

....
Try at your own risk  Wink

https://github.com/ryouiki/bitHopper
(you must edit password.py as usual)

thx works great.

But i can't get nofeemining working, neither with "original" bitHopper nor your modded Version.

I always mess up the sharesRespons function, with the weekends Version of BitHopper everything was fine, but with the yesterdays Version its broken.

Old (working) Version:

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

Code:
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))

Code:
 'nofee':nofee_sharesResponse, 

New (broken) Version:

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

Code:
	def nofee_sharesResponse(self, response):
info = json.loads(response)
round_shares = int(info['poolRoundShares'])
self.UpdateShares('nofee:',round_shares)

Code:
'nofee':self.nofee_sharesResponse, 

Error is:
Code:
[10:03:01] Error in pool api for bitp[Failure instance: Traceback: ions.AttributeError'>: Pool instance has no attribute 'nofee_sharesResponse'
C:\Python27\lib\site-packages\twisted\internet\defer.py:1076:gotResult
C:\Python27\lib\site-packages\twisted\internet\defer.py:1063:_inlineCallbacks
C:\Python27\lib\site-packages\twisted\internet\defer.py:361:callback
C:\Python27\lib\site-packages\twisted\internet\defer.py:455:_startRunCallbacks
--- ---
C:\Python27\lib\site-packages\twisted\internet\defer.py:542:_runCallbacks
C:\Bit\ryouiki-bitHopper-43e6b75\pool.py:212:selectsharesResponse
]
[10:03:01] bitp est : 0.033427 / 0.94x chance
[10:03:01] Error in pool api for triple[Failure instance: Traceback (failure wi
h no frames): : [ure >]
]
[10:03:01] Error in pool api for polmine[Failure instance: Traceback: eptions.AttributeError'>: Pool instance has no attribute 'nofee_sharesResponse'
C:\Python27\lib\site-packages\twisted\internet\defer.py:1076:gotResult
C:\Python27\lib\site-packages\twisted\internet\defer.py:1063:_inlineCallbacks
C:\Python27\lib\site-packages\twisted\internet\defer.py:361:callback
C:\Python27\lib\site-packages\twisted\internet\defer.py:455:_startRunCallbacks
--- ---
C:\Python27\lib\site-packages\twisted\internet\defer.py:542:_runCallbacks
C:\Bit\ryouiki-bitHopper-43e6b75\pool.py:212:selectsharesResponse
]
[Failure instance: Traceback (failure with no frames): seFailed'>: [ectionLost'>>]
]
full member
Activity: 196
Merit: 100
July 19, 2011, 04:01:23 AM
1) Flower's website?
Well my own version is almost up. Its not his and is completely flat for now because I need to learn javascript. But it has a database backend.
hero member
Activity: 556
Merit: 500
July 19, 2011, 03:53:38 AM
newbie
Activity: 33
Merit: 0
July 19, 2011, 02:39:16 AM
I made a personal bitHopper fork with following features

- Database logging for share / accept / reject per pool (you can plot chart with it)
- choose better backup pool (by accept rate)
- can use bitcoins.lc
- can use bitp.it
- can use nofeemining
- can use polmine
- more stability

sample output :
Quote
[15:30:53] RPC request [0701ab32] submitted to triplemining.com
[15:30:56] Share > mtred : 2,243,450
[15:30:57] Share > bitp : 1,598,426
[15:30:57] Share > rfc : 1,497,127
[15:30:58] RPC request [C2ACD81D] submitted to triplemining.com
[15:30:58] Share > triple : 406,166 | 1860/1918 = 96.98%
[15:31:02] bitp est : 0.194754 / 0.97x chance
[15:31:02] mtr est : 0.023602 / 0.69x chance
[15:31:07] RPC request [8e755cdd] submitted to triplemining.com
[15:31:08] RPC request [3dc60e5b] submitted to triplemining.com
[15:31:17] RPC request [216c2f17] submitted to triplemining.com
[15:31:19] RPC request [4c31a023] submitted to triplemining.com
[15:31:28] RPC request [b6dec09c] submitted to triplemining.com
[15:31:37] RPC request [babe1f8b] submitted to triplemining.com
[15:31:40] RPC request [5d8ff1ce] submitted to triplemining.com
[15:31:44] RPC request [8b227624] submitted to triplemining.com
[15:31:46] RPC request [3ea80c42] submitted to triplemining.com
[15:31:49] RPC request [8735bf91] submitted to triplemining.com
[15:31:51] RPC request [23d281bc] submitted to triplemining.com
[15:31:53] Share > bitp : 1,599,105
[15:31:53] Share > bclc : 1,995,181 | 124/130 = 95.38%
[15:31:54] RPC request [4a0f6eae] submitted to triplemining.com
[15:31:55] Share > triple : 408,124 | 1873/1931 = 97.00%
[15:32:02] RPC request [48309b81] submitted to triplemining.com
[15:32:06] RPC request [9fe53cb2] submitted to triplemining.com
[15:32:07] RPC request [b56ec3e3] submitted to triplemining.com
[15:32:10] RPC request [a3eda037] submitted to triplemining.com
[15:32:26] RPC request [6ad31475] submitted to triplemining.com
[15:32:29] RPC request [ee675c93] submitted to triplemining.com
[15:32:31] RPC request [3987a0d6] submitted to triplemining.com

Try at your own risk  Wink

https://github.com/ryouiki/bitHopper
(you must edit password.py as usual)
sr. member
Activity: 476
Merit: 250
moOo
July 19, 2011, 02:37:13 AM
I know you are busy c00w and probably going to get to it anyways, but I'd like to request you include the web stats page that flower put in his mod of your hopper, it's nice to be able to watch from elsewhere what s going on
member
Activity: 84
Merit: 10
July 19, 2011, 02:34:44 AM
Well I'm happy the problem is solved.

--nitpick--
That should be in the um... debug logs. I feel horrible saying that but... yeah. Logs always help me find stuff.

I was about to post them when I thought, "well I know it can't be this password thing that enmaku posted about, but let me check that before I post the debug".  Again, sorry for wasting your time when it was my own dumb mistake that caused the problem.  
full member
Activity: 168
Merit: 100
July 19, 2011, 02:33:29 AM
I'm on Triple now as well.

Is there a way to get a separate window of just the current pool stats. It zooms past so fast and if I scroll back up to see what the pools are displaying it disconnects my miners until I let the scroll go.

Win7 x32 GuiMiner with Phoenix/PhatK
full member
Activity: 196
Merit: 100
July 19, 2011, 02:24:52 AM
Well I'm happy the problem is solved.

--nitpick--
That should be in the um... debug logs. I feel horrible saying that but... yeah. Logs always help me find stuff.
member
Activity: 84
Merit: 10
July 19, 2011, 02:16:51 AM
Never mind, it was my own stupidity - I'd entered my ACCOUNT login info for triple, not my WORKER login info lol. It's late, brainfarts happen Tongue

Holy shit.  Same exact problem.  So sorry for wasting your time c00w.  I am an absolute idiot for not checking that. 
hero member
Activity: 742
Merit: 500
July 19, 2011, 02:08:54 AM
Never mind, it was my own stupidity - I'd entered my ACCOUNT login info for triple, not my WORKER login info lol. It's late, brainfarts happen Tongue
full member
Activity: 196
Merit: 100
July 19, 2011, 02:06:29 AM
1) enmaku and muyoso

Okay well I'm serious and desperate here. I really need a log output. run with debug copy your log, throw it on pastebin or github or whatever. GIVE ME A LOG. I'M BEGGING YOU!

Hands and knees seriously. I can't help you without it.
member
Activity: 84
Merit: 10
July 19, 2011, 02:03:58 AM
https://muyoso.triplemining.com/stats loads for me fine.  I watch the hashes change flawlessly on that page and in the source code.

Running windows 7 32bit with phoenix miner.  I am not behind any sort of network filter.  
sr. member
Activity: 476
Merit: 250
moOo
July 19, 2011, 02:03:12 AM
Quote
1) Is anyone mining triplemining?
I am.

2) Issues with api and not correctly setting pools?
I broke the delagger. Does the latest version work?

mining triplemining here just fine.. everything is working fine here. well I'm not sure what the delagger did, but everything appears to be working fine here

win732 bit py37 all that jazz
hero member
Activity: 742
Merit: 500
July 19, 2011, 02:01:07 AM
1) Is anyone mining triplemining?
I am.

2) Issues with api and not correctly setting pools?
I broke the delagger. Does the latest version work?


Just downloaded and no, same issue with not switching to triplemining.  Error in json decoding.

Same issue. the stats page does in fact load for me, Windows 7 64-bit (32-bit python 2.7) and pyopenssl is installed.
full member
Activity: 196
Merit: 100
July 19, 2011, 01:56:05 AM
1)Triplemining error?

Are you behind a network filter? Or otherwise blocked by triplemining? We are scraping raw html. Also Log link and OS, miner? Does https://www.tripleming.com/stats load for you? Are you on windows XP and do you have pyopenssl installed if so?

2) Hash display code?
Hmm yeah I think it has a bug. Fixing it now.
EDIT: It works.
hero member
Activity: 742
Merit: 500
July 19, 2011, 01:44:51 AM
Not sure what was wrong before with the miners not incrementing but I did a fresh pull and rewrote all the passwords.py entries by hand (instead of copy/paste) and it seems to be working.

Also, if (like me) you like seeing the hashes, just edit bitHopper.py and comment out lines 177, 179 and 180 like so:
Code:
#    if bithopper_global.options.debug:
    bithopper_global.log_msg('RPC request ' + str(data) + " submitted to " + str(pool_server['name']))
#    else:
#        bithopper_global.log_msg('RPC request [' + str(data[155:163]) + "] submitted to " + str(pool_server['name']))

There's something comforting to me about seeing those hashes, lets me know things are still working  Grin
Jump to: