Pages:
Author

Topic: bitHopper: Python Pool Hopper Proxy - page 82. (Read 355678 times)

sr. member
Activity: 350
Merit: 250
August 04, 2011, 08:52:22 PM
i just made a poclbm fork that gets its server list from an bitHopper address.
it checks every three seconds for the current pool and switches if neccesary

if you want to try it out:
https://github.com/flower1024/poclbm




This is awesome and it looks like it will nail a couple problems I was having on the head I think. At the very least allow me to test a few theories of mine to trying nail the problem to the source for a few pools. If more pools start to give similar issues, then bitHopper will just have to grow with it. Wink
legendary
Activity: 924
Merit: 1004
Firstbits: 1pirata
August 04, 2011, 08:00:32 PM
Errors?

Error with not being able to decode?
Solved. Actually solved twice.

Error with pull_lp taking three arguments instead of 2?
Solved.

This version should be stable.

Cool , updating now. I hope the error log spamming is anoying you but actually usefull Smiley

+1  Cool

edit: running nice and smooth
hero member
Activity: 504
Merit: 502
August 04, 2011, 07:55:23 PM
Errors?

Error with not being able to decode?
Solved. Actually solved twice.

Error with pull_lp taking three arguments instead of 2?
Solved.

This version should be stable.

Cool , updating now. I hope the error log spamming isnt anoying you but actually usefull Smiley
full member
Activity: 196
Merit: 100
August 04, 2011, 07:53:56 PM
Errors?

Error with not being able to decode?
Solved. Actually solved twice.

Error with pull_lp taking three arguments instead of 2?
Solved.

This version should be stable.

EDIT:
djex:
Your error was fixed this morning I think.
the other two errors were found in lp.py. For some reason callLater(self.whatever) still need to have self passed as an argument.
And I also wasn't wrapping my errors enough. They are wrapped now.
hero member
Activity: 504
Merit: 502
August 04, 2011, 07:51:37 PM
error Im getting with default scheduler:

Code:
{"midstate":"4ff8f635b68edda9bf676e149049cf307e5b187b0791d59888fe93e7cd064427","target":"ffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000","data":"00000001ddd6f368dbf681c6416c1e61dd419e9b19a9eb2f08df9704000006a90000000042fad16a38388060ee7f1f055bb7e84d774b66067c5223b5b6edcb0f9cd7e70e4e3b30481a08e1e500000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000080020000","hash1":"00000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000010000"}}
Traceback (most recent call last):
  File "./bitHopper.py", line 296, in
    main()
  File "./bitHopper.py", line 292, in main
    reactor.run()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1158, in run
    self.mainLoop()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1167, in mainLoop
    self.runUntilCurrent()
--- ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 789, in runUntilCurrent
    call.func(*call.args, **call.kw)
exceptions.TypeError: pull_lp() takes exactly 3 arguments (2 given)
full member
Activity: 196
Merit: 100
August 04, 2011, 07:45:41 PM
Got this error.

Code:
Unhandled error in Deferred:
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 318, in callback
    self._startRunCallbacks(result)
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 424, in _startRunCallbacks
    self._runCallbacks()
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 441, in _runCallbacks
    self.result = callback(self.result, *args, **kw)
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 949, in gotResult
    _inlineCallbacks(r, g, deferred)
--- ---
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 893, in _inlineCallbacks
    result = g.send(result)
  File "/home/djex/bitHopper/work.py", line 71, in jsonrpc_lpcall
    lp.receive(text,server)
  File "/home/djex/bitHopper/lp.py", line 30, in receive
    response = json.loads(body)
  File "/usr/lib/python2.6/json/__init__.py", line 307, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.6/json/decoder.py", line 319, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.6/json/decoder.py", line 338, in raw_decode
    raise ValueError("No JSON object could be decoded")
exceptions.ValueError: No JSON object could be decoded
hero member
Activity: 504
Merit: 502
August 04, 2011, 07:39:16 PM
Seems to be alot of errors popping up upon pool changes with latest version, seems to be related to lp.py code.
sr. member
Activity: 476
Merit: 250
moOo
August 04, 2011, 07:34:09 PM
sweet, i turned digbit on right before they found that, nice payout for an hours worth of work
full member
Activity: 168
Merit: 100
August 04, 2011, 07:15:55 PM
Mt Red now offers both prop with a 2% fee and pps with a 7% fee.  You can change your reward method in your settings page.


https://mtred.com/user/profile/edit.html

FYI:

Host    mtred.com (173.193.21.69) or
eu.mtred.com (78.46.30.23)
full member
Activity: 168
Merit: 100
August 04, 2011, 07:11:44 PM
for me this poclbm patch solved the bitclockers problem completly.
it has been a long time since i have seen my real hashrate on their site Smiley

atm this patch produces some rejects when switching pools (around 4).

until saturday i'll add the following:
 - try out poclbm mentioned by clipse
 - close old connection, clear work queue and reconnect lp on switch
 - (maybe) interface with bithopper for submitting share/rejects and user stats

any other ideas?

Now that is some Flower Power! Good approach.  Can't wait to see this in the wild.
legendary
Activity: 1764
Merit: 1006
August 04, 2011, 07:04:51 PM
Mt Red now offers both prop with a 2% fee and pps with a 7% fee.  You can change your reward method in your settings page.


https://mtred.com/user/profile/edit.html
was thinking of using mtred pps as backup too, but 7% is steep.
hero member
Activity: 504
Merit: 502
August 04, 2011, 06:56:10 PM
for me this poclbm patch solved the bitclockers problem completly.
it has been a long time since i have seen my real hashrate on their site Smiley

atm this patch produces some rejects when switching pools (around 4).

until saturday i'll add the following:
 - try out poclbm mentioned by clipse
 - close old connection, clear work queue and reconnect lp on switch
 - (maybe) interface with bithopper for submitting share/rejects and user stats

any other ideas?

Sounds like a plan, I think supporting phatk2/phatk2_1 and solving bitclockers issue aswell as fixing the rejects(I also noticed them) at same time is a definite win for the good guys Smiley
legendary
Activity: 1428
Merit: 1000
August 04, 2011, 06:50:22 PM
for me this poclbm patch solved the bitclockers problem completly.
it has been a long time since i have seen my real hashrate on their site Smiley

atm this patch produces some rejects when switching pools (around 4).

until saturday i'll add the following:
 - try out poclbm mentioned by clipse
 - close old connection, clear work queue and reconnect lp on switch
 - (maybe) interface with bithopper for submitting share/rejects and user stats

any other ideas?
hero member
Activity: 504
Merit: 502
August 04, 2011, 06:34:46 PM
Must be the first Bitcon block ever found:

digbtc.net image.

It would be great if he actually reset the block shares.
legendary
Activity: 1526
Merit: 1002
Waves | 3PHMaGNeTJfqFfD4xuctgKdoxLX188QM8na
August 04, 2011, 06:33:29 PM
Mt Red now offers both prop with a 2% fee and pps with a 7% fee.  You can change your reward method in your settings page.


https://mtred.com/user/profile/edit.html
hero member
Activity: 504
Merit: 502
August 04, 2011, 06:33:23 PM
I have btcmp.com working, but it's been flaky the last few days (the pool itself). If it stabilizes, I'll release my patch (I didn't push it to github yet).

FYI i've patched up AltSliceScheduler, should be stable and a little more aggressive in switching pools when threshold is met (rather than finishing it's slice). Also the slices are truly proportional now.

Getting quite a few of these errors in your version Ed, ill see if c00w's bithopper doing the same.
Strange part is it doesnt actually seem to matter, it still continues at the pool.

Code:
[Failure instance: Traceback (failure with no frames): : DNS lookup failed: address 'http' not found: [Errno -5] No address associated with hostname.
]
Unhandled error in Deferred:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 388, in errback
    self._startRunCallbacks(fail)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 455, in _startRunCallbacks
    self._runCallbacks()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 542, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1076, in gotResult
    _inlineCallbacks(r, g, deferred)
--- ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks
    result = g.send(result)
  File "/home/miner1/bitHopper_c00w_echiu64/work.py", line 66, in jsonrpc_lpcall
    body.deliverBody(WorkProtocol(finish))
exceptions.AttributeError: 'NoneType' object has no attribute 'deliverBody'
legendary
Activity: 1526
Merit: 1002
Waves | 3PHMaGNeTJfqFfD4xuctgKdoxLX188QM8na
August 04, 2011, 06:23:51 PM
Must be the first Bitcon block ever found:

hero member
Activity: 504
Merit: 502
August 04, 2011, 06:19:37 PM
if you use phatk 2.0or 2.1 double check your rejects. It lead to a great increase on my end and I'm not the only one... (especially on bitclockers.. go figure)

I have no problems with the new diablo 8-04 but i had to find bfipatcher.py not sure why.


I thought we disabled btcword.de for a different reason besides it didnt work? werent they doing the delayed stats thing?





There seems to be issue with phatk2_1 release, the phatk2 poclbm patch on the poclbm fork I posted works great, the fastest version of all the miners for me on my 5850's
sr. member
Activity: 476
Merit: 250
moOo
August 04, 2011, 06:17:04 PM
if you use phatk 2.0or 2.1 double check your rejects. It lead to a great increase on my end and I'm not the only one... (especially on bitclockers.. go figure)

I have no problems with the new diablo 8-04 but i had to find bfipatcher.py not sure why.


I thought we disabled btcword.de for a different reason besides it didnt work? werent they doing the delayed stats thing?



legendary
Activity: 1428
Merit: 1000
August 04, 2011, 06:15:08 PM
I hate to ask more of your time Smiley but could you add this feature to the phatk2 poclbm fork located here, https://github.com/progranism/poclbm

Unless you allready added phatk2 and phatk2_1 support to this fork?

atm its just a quick hack.
lets see if it brings any good.

if so i am willing to put more time on it Smiley

lets wait until saturday, until then i know if i would like to use further or not.
i used the fastlongpoll branch from the p2pool guy - as this works best for me.

(btw: i did not change that much - only Transport.py. i am pretty sure its not that hard to integrate it in another fork)

FIXED: btw i have a bug that it still trying to get back to its primary... i'll fix that
Pages:
Jump to: