Author

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

legendary
Activity: 910
Merit: 1000
Quality Printing Services by Federal Reserve Bank
July 24, 2011, 10:26:15 AM
most recent pull from git?

yes

$ git pull
Already up-to-date.
donator
Activity: 2058
Merit: 1007
Poor impulse control.
July 24, 2011, 09:58:18 AM
most recent pull from git?
legendary
Activity: 910
Merit: 1000
Quality Printing Services by Federal Reserve Bank
July 24, 2011, 09:54:15 AM
And it usually ends with this:

Code:
[17:43:41] triple: 2,085,280
[17:43:42] LP triggered from server nofeemining
[17:43:42] Reading LP Response failed
[17:43:48] RPC request [] submitted to nofeemining.com
[17:43:51] triple: 2,085,441
Caught, jsonrpc_call insides
User timeout caused connection failure.
Caught, jsonrpc_call insides
DNS lookup failed: address 'nofeemining.com' not found: [Errno -2] Name or service not known.
[17:43:56] Server change to mtred, telling client with LP
[17:43:56] LP Call mtred.com:8337/LP
[17:44:00] RPC request [] submitted to mtred
[17:44:15] RPC request [] submitted to mtred
[17:44:23] RPC request [] submitted to mtred
[17:44:24] RPC request [36209000] submitted to mtred
[17:44:24] nofeemining: 735,637
[17:44:26] RPC request [895d1000] submitted to mtred
Caught, jsonrpc_call insides
User timeout caused connection failure.
[17:44:30] Server change to None, telling client with LP
Caught, jsonrpc_call insides
'NoneType' object is not subscriptable
Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/twisted/internet/defer.py", line 361, in callback
    self._startRunCallbacks(result)
  File "/usr/lib/python2.7/site-packages/twisted/internet/defer.py", line 455, in _startRunCallbacks
    self._runCallbacks()
  File "/usr/lib/python2.7/site-packages/twisted/internet/defer.py", line 542, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/lib/python2.7/site-packages/twisted/internet/defer.py", line 1076, in gotResult
    _inlineCallbacks(r, g, deferred)
--- ---
  File "/usr/lib/python2.7/site-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks
    result = g.send(result)
  File "/blah/MINER/bitHopper/work.py", line 124, in jsonrpc_getwork
    server = new_server(server)
  File "bitHopper.py", line 163, in get_new_server
    self.pool.get_entry(self.pool.get_current())['lag'] = True
exceptions.TypeError: 'NoneType' object does not support item assignment
[17:44:30] Error in pool api for triple
Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/twisted/web/http.py", line 1349, in dataReceived
    finishCallback(data[contentLength:])
  File "/usr/lib/python2.7/site-packages/twisted/web/http.py", line 1563, in _finishRequestBody
    self.allContentReceived()
  File "/usr/lib/python2.7/site-packages/twisted/web/http.py", line 1619, in allContentReceived
    req.requestReceived(command, path, version)
  File "/usr/lib/python2.7/site-packages/twisted/web/http.py", line 773, in requestReceived
    self.process()
--- ---
  File "/usr/lib/python2.7/site-packages/twisted/web/server.py", line 127, in process
    self.render(resrc)
  File "/usr/lib/python2.7/site-packages/twisted/web/server.py", line 147, in render
    body = resrc.render(self)
  File "/usr/lib/python2.7/site-packages/twisted/web/resource.py", line 216, in render
    return m(request)
  File "bitHopper.py", line 369, in render_POST
    return bitHopper_Post(request)
  File "bitHopper.py", line 226, in bitHopper_Post
    bithopper_global.log_msg('RPC request [' + rep + "] submitted to " + str(pool_server['name']))
exceptions.TypeError: 'NoneType' object is not subscriptable
Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/twisted/web/http.py", line 1349, in dataReceived
    finishCallback(data[contentLength:])
  File "/usr/lib/python2.7/site-packages/twisted/web/http.py", line 1563, in _finishRequestBody
    self.allContentReceived()
  File "/usr/lib/python2.7/site-packages/twisted/web/http.py", line 1619, in allContentReceived
    req.requestReceived(command, path, version)
  File "/usr/lib/python2.7/site-packages/twisted/web/http.py", line 773, in requestReceived
    self.process()
--- ---
  File "/usr/lib/python2.7/site-packages/twisted/web/server.py", line 127, in process
    self.render(resrc)
  File "/usr/lib/python2.7/site-packages/twisted/web/server.py", line 147, in render
    body = resrc.render(self)
  File "/usr/lib/python2.7/site-packages/twisted/web/resource.py", line 216, in render
    return m(request)
  File "bitHopper.py", line 369, in render_POST
    return bitHopper_Post(request)
  File "bitHopper.py", line 226, in bitHopper_Post
    bithopper_global.log_msg('RPC request [' + rep + "] submitted to " + str(pool_server['name']))
exceptions.TypeError: 'NoneType' object is not subscriptable
[17:44:40] triple: 2,086,391
[17:44:40] Error in pool api for triple
Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/twisted/web/http.py", line 1349, in dataReceived
    finishCallback(data[contentLength:])
  File "/usr/lib/python2.7/site-packages/twisted/web/http.py", line 1563, in _finishRequestBody
    self.allContentReceived()
  File "/usr/lib/python2.7/site-packages/twisted/web/http.py", line 1619, in allContentReceived
    req.requestReceived(command, path, version)
  File "/usr/lib/python2.7/site-packages/twisted/web/http.py", line 773, in requestReceived
    self.process()
--- ---
  File "/usr/lib/python2.7/site-packages/twisted/web/server.py", line 127, in process
    self.render(resrc)
  File "/usr/lib/python2.7/site-packages/twisted/web/server.py", line 147, in render
    body = resrc.render(self)
  File "/usr/lib/python2.7/site-packages/twisted/web/resource.py", line 216, in render
    return m(request)
  File "bitHopper.py", line 369, in render_POST
    return bitHopper_Post(request)
  File "bitHopper.py", line 226, in bitHopper_Post
    bithopper_global.log_msg('RPC request [' + rep + "] submitted to " + str(pool_server['name']))
exceptions.TypeError: 'NoneType' object is not subscriptable
Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/twisted/web/http.py", line 1349, in dataReceived
    finishCallback(data[contentLength:])
  File "/usr/lib/python2.7/site-packages/twisted/web/http.py", line 1563, in _finishRequestBody
    self.allContentReceived()
  File "/usr/lib/python2.7/site-packages/twisted/web/http.py", line 1619, in allContentReceived
    req.requestReceived(command, path, version)
  File "/usr/lib/python2.7/site-packages/twisted/web/http.py", line 773, in requestReceived
    self.process()
--- ---
  File "/usr/lib/python2.7/site-packages/twisted/web/server.py", line 127, in process
    self.render(resrc)
  File "/usr/lib/python2.7/site-packages/twisted/web/server.py", line 147, in render
    body = resrc.render(self)
  File "/usr/lib/python2.7/site-packages/twisted/web/resource.py", line 216, in render
    return m(request)
  File "bitHopper.py", line 369, in render_POST
    return bitHopper_Post(request)
  File "bitHopper.py", line 226, in bitHopper_Post
    bithopper_global.log_msg('RPC request [' + rep + "] submitted to " + str(pool_server['name']))
exceptions.TypeError: 'NoneType' object is not subscriptable
[17:44:50] triple: 2,086,564
[17:44:50] Error in pool api for triple
[17:44:51] triple: 2,086,564
[17:44:51] Error in pool api for triple
Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/twisted/web/http.py", line 1349, in dataReceived
    finishCallback(data[contentLength:])
  File "/usr/lib/python2.7/site-packages/twisted/web/http.py", line 1563, in _finishRequestBody
    self.allContentReceived()
  File "/usr/lib/python2.7/site-packages/twisted/web/http.py", line 1619, in allContentReceived
    req.requestReceived(command, path, version)
  File "/usr/lib/python2.7/site-packages/twisted/web/http.py", line 773, in requestReceived
    self.process()
--- ---
  File "/usr/lib/python2.7/site-packages/twisted/web/server.py", line 127, in process
    self.render(resrc)
  File "/usr/lib/python2.7/site-packages/twisted/web/server.py", line 147, in render
    body = resrc.render(self)
  File "/usr/lib/python2.7/site-packages/twisted/web/resource.py", line 216, in render
    return m(request)
  File "bitHopper.py", line 369, in render_POST
    return bitHopper_Post(request)
  File "bitHopper.py", line 226, in bitHopper_Post
    bithopper_global.log_msg('RPC request [' + rep + "] submitted to " + str(pool_server['name']))
exceptions.TypeError: 'NoneType' object is not subscriptable
^C[Failure instance: Traceback (failure with no frames): : [>]
]
Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/twisted/internet/defer.py", line 1076, in gotResult
    _inlineCallbacks(r, g, deferred)
  File "/usr/lib/python2.7/site-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks
    result = g.send(result)
  File "/blah/MINER/bitHopper/work.py", line 65, in jsonrpc_lpcall
    d = update(body)
  File "/usr/lib/python2.7/site-packages/twisted/internet/defer.py", line 1141, in unwindGenerator
    return _inlineCallbacks(None, f(*args, **kwargs), Deferred())
--- ---
  File "/usr/lib/python2.7/site-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks
    result = g.send(result)
  File "/blah/MINER/bitHopper/lp.py", line 19, in update_lp
    self.bitHopper.log_msg("LP triggered from server " + self.bitHopper.get_server())
exceptions.TypeError: cannot concatenate 'str' and 'NoneType' objects
legendary
Activity: 910
Merit: 1000
Quality Printing Services by Federal Reserve Bank
July 24, 2011, 09:28:40 AM
Code:
[17:27:25] RPC request [] submitted to nofeemining.com
[17:27:26] LP Call nofeemining.com:8332/LP
Caught, jsonrpc_call insides
'user'

What is that I do I need to worry?
newbie
Activity: 55
Merit: 0
July 24, 2011, 08:44:43 AM
Check a few pages back, there's a working bit of code for triple by fresco. Dunno about btcworld though, I havent added it yet.
is this this one?
http://forum.bitcoin.org/index.php?topic=26866.msg377361;topicseen#msg377361
TIA

This one http://forum.bitcoin.org/index.php?topic=26866.msg391911#msg391911  Smiley Works for me at least.
donator
Activity: 2058
Merit: 1007
Poor impulse control.
July 24, 2011, 08:08:29 AM
poolmunity just started a new block. LO! and behold - hashrate just rose from 3Ghps to over 30Ghps. I wonder what will happen when they hit over 700000 total shares? Careful....
legendary
Activity: 2955
Merit: 1049
July 24, 2011, 07:58:45 AM
Check a few pages back, there's a working bit of code for triple by fresco. Dunno about btcworld though, I havent added it yet.
is this this one?
http://forum.bitcoin.org/index.php?topic=26866.msg377361;topicseen#msg377361
TIA
donator
Activity: 2058
Merit: 1007
Poor impulse control.
July 24, 2011, 07:53:16 AM
btc-poolwatch.com now supports:

ArsBitcoin       
BitClockers
      
BitcoinPool
BitPit (fine for backup now)
BTC Guild
BTC Mine    
Deepbit    
Eclipse MC    
Eligius    
Mainframe MC    
Mineco.in
Mt. Red    
NoFeeMining    
Ozco.in    
PolMine    
rfcpool       
Slush Pool

It also supports turning apis off without having to delete apis. I can't do without this for spot checks at work, or at home if I don't want to log into my miner. Best of all it's free and the dev rearwheels is very responsive - ask for a site to be added and he'll do it.
newbie
Activity: 55
Merit: 0
July 24, 2011, 07:45:03 AM
Hi
does anybody know why this is going strange:
----------------------------
Error in pool api for btcworld
Error in pool api for triple
----------------------------
(now fresh from github ryouiki)
TIA

Check a few pages back, there's a working bit of code for triple by fresco. Dunno about btcworld though, I havent added it yet.
legendary
Activity: 2955
Merit: 1049
July 24, 2011, 07:39:43 AM
Hi
does anybody know why this is going strange:
----------------------------
Error in pool api for btcworld
Error in pool api for triple
----------------------------
(now fresh from github ryouiki)
TIA
newbie
Activity: 55
Merit: 0
donator
Activity: 2058
Merit: 1007
Poor impulse control.
July 24, 2011, 06:57:47 AM
Code:
[btcworld]
name: BTC World
mine_address: btcworld.de:8332
api_address:http://btcworld.de/statistics
role:info
api_method:re
api_key:Verifizierte\s+Anteile\s+der\s+aktuellen\s+Runde:([0-9]+(,[0-9]+)*)
api_strip:','
#CHANGE THIS
#http://btcworld.de/signup
user: user
pass: x

Working.
I'm a stupid stupid man, as I manually set language to English in my browser, but the webpage defaults to German...


I would laugh at you, except I did the exact same thing - maybe that's why I can't get bclc working...
legendary
Activity: 2955
Merit: 1049
legendary
Activity: 910
Merit: 1000
Quality Printing Services by Federal Reserve Bank
July 24, 2011, 06:32:10 AM
I think you can eliminate a unnecessary hopping and improve the effectivness.
Here is a really good example of way too hysterical jump:

Code:
[14:23:18] RPC request [d871f000] submitted to nofeemining.com
[14:23:19] RPC request [] submitted to nofeemining.com
Caught, jsonrpc_call insides
DNS lookup failed: address 'nofeemining.com' not found: [Errno -2] Name or service not known.  <--- SO WHAT, can I send work? If yes, do not hopp
[14:23:23] Error in pool api for nofeemining
[14:23:29] triple: 1,860,983
[14:23:29] Server change to mtred, telling client with LP <-- you need one more test for connection to nofeemining.com and if this fails, jump
[14:23:39] RPC request [] submitted to mtred
[14:23:40] LP Call mtred.com:8337/LP
[14:23:40] triple: 1,861,181
[14:23:41] RPC request [] submitted to mtred
[14:23:50] triple: 1,861,371
[14:23:59] triple: 1,861,563
[14:24:03] RPC request [] submitted to mtred
[14:24:05] RPC request [] submitted to mtred
[14:24:09] triple: 1,861,745
[14:24:10] RPC request [5975b000] submitted to mtred
[14:24:11] RPC request [17961000] submitted to mtred
[14:24:19] nofeemining: 602,626
[14:24:19] Server change to nofeemining, telling client with LP <--- previous jump was total waste of resources :) 
[14:24:19] triple: 1,861,959
[14:24:25] RPC request [] submitted to nofeemining.com
member
Activity: 78
Merit: 10
July 24, 2011, 06:06:11 AM
Code:
[btcworld]
name: BTC World
mine_address: btcworld.de:8332
api_address:http://btcworld.de/statistics
role:info
api_method:re
api_key:Verifizierte\s+Anteile\s+der\s+aktuellen\s+Runde:([0-9]+(,[0-9]+)*)
api_strip:','
#CHANGE THIS
#http://btcworld.de/signup
user: user
pass: x

Working.
I'm a stupid stupid man, as I manually set language to English in my browser, but the webpage defaults to German...
member
Activity: 78
Merit: 10
July 24, 2011, 05:58:11 AM
Code:
[btcworld]
name: BTC World
mine_address: btcworld.de:8332
api_address:http://btcworld.de/statistics
role:info
api_method:re
api_key:Valid\s+shares\s+for\s+current\s+round:([0-9]+(,[0-9]+)*)
api_strip:','
#CHANGE THIS
#http://btcworld.de/signup
user: user
pass: x

This works just fine when I run it through the steps (selectSharesResponse) in python cmd line, but not when I run it "live".
donator
Activity: 2058
Merit: 1007
Poor impulse control.
July 24, 2011, 05:13:10 AM



Code:
align="right">Valid shares for current round:1,095,628align="right">

Haven't yet succeeded in getting the regexp right..


try

Code:
api_key:Valid\s+shares\s+for\s+current\s+round:(\d+)
api_strip:','
donator
Activity: 2058
Merit: 1007
Poor impulse control.
July 24, 2011, 05:07:53 AM
is there an api? if so post an example.


http://btcworld.de/statistics

Code:
align="right">Valid shares for current round:1,095,628align="right">

Haven't yet succeeded in getting the regexp right..

I don't think ewbit wants to play with regex. I was hoping there'd be an api. There is none?
donator
Activity: 2058
Merit: 1007
Poor impulse control.
July 24, 2011, 05:06:23 AM
Bitp.it now on ESMPPS. Set phasers to 'backup'!
member
Activity: 78
Merit: 10
July 24, 2011, 05:05:59 AM
is there an api? if so post an example.


http://btcworld.de/statistics

Code:
align="right">Valid shares for current round:1,095,628align="right">

Haven't yet succeeded in getting the regexp right..
Jump to: