Bitcoin Forum
December 07, 2016, 04:27:12 PM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: « 1 ... 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 [141] 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 ... 205 »
  Print  
Author Topic: bitHopper: Python Pool Hopper Proxy  (Read 332866 times)
GenTarkin
Legendary
*
Offline Offline

Activity: 1918


View Profile
August 07, 2011, 07:16:38 PM
 #2801

So, downloaded the latest build and copied deepbit settings into my user.cfg but...when I run bithopper I dont ever see it poll deepbit API in the window....something Im doin wrong?

GenTarkin's MOD Kncminer Titan custom firmware! v1.0.4! <--- CLICK HERE
Donations: bitcoin- 1Px71mWNQNKW19xuARqrmnbcem1dXqJ3At || litecoin- LYXrLis3ik6TRn8tdvzAyJ264DRvwYVeEw
1481128032
Hero Member
*
Offline Offline

Posts: 1481128032

View Profile Personal Message (Offline)

Ignore
1481128032
Reply with quote  #2

1481128032
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
c00w
Full Member
***
Offline Offline

Activity: 196


View Profile
August 07, 2011, 07:18:09 PM
 #2802

Run bitHopper with --startLP

And it doesn't poll the API. This is extremely sketchy LP based hopping.

1HEmzeuVEKxBQkEenysV1yM8oAddQ4o2TX
djex
Full Member
***
Offline Offline

Activity: 196


View Profile
August 07, 2011, 07:20:05 PM
 #2803

Latest Version I get this error on start up of bitHopper:

Code:
Traceback (most recent call last):
  File "bitHopper.py", line 10, in <module>
    import pool
  File "/home/djex/bitHopper/pool.py", line 12, in <module>
    from collections import OrderedDict
ImportError: cannot import name OrderedDict

Smiley  : 1LbvSEJwtQZKLSQQVYxQJes8YneQk2yhE3
GenTarkin
Legendary
*
Offline Offline

Activity: 1918


View Profile
August 07, 2011, 07:22:05 PM
 #2804

Run bitHopper with --startLP

And it doesn't poll the API. This is extremely sketchy LP based hopping.

Does it only do this w/ deepbit or will this affect how it polls all pools?

GenTarkin's MOD Kncminer Titan custom firmware! v1.0.4! <--- CLICK HERE
Donations: bitcoin- 1Px71mWNQNKW19xuARqrmnbcem1dXqJ3At || litecoin- LYXrLis3ik6TRn8tdvzAyJ264DRvwYVeEw
paraipan
Legendary
*
Offline Offline

Activity: 924


Firstbits: 1pirata


View Profile WWW
August 07, 2011, 07:25:41 PM
 #2805

Latest Version I get this error on start up of bitHopper:

Code:
Traceback (most recent call last):
  File "bitHopper.py", line 10, in <module>
    import pool
  File "/home/djex/bitHopper/pool.py", line 12, in <module>
    from collections import OrderedDict
ImportError: cannot import name OrderedDict

think it's the new sort pools function c00w has added just a moment ago, we're on the "bleeding edge" here  Cheesy

BTCitcoin: An Idea Worth Saving - Q&A with bitcoins on rugatu.com - Check my rep
c00w
Full Member
***
Offline Offline

Activity: 196


View Profile
August 07, 2011, 07:27:21 PM
 #2806

Update to python 2.7. I'll add in a catch but you won't get sorting.

EDIT: Catch is added, update and see if it works.

1HEmzeuVEKxBQkEenysV1yM8oAddQ4o2TX
GenTarkin
Legendary
*
Offline Offline

Activity: 1918


View Profile
August 07, 2011, 07:28:06 PM
 #2807

yeah I get all sorts of errors w/ --startLP in the beginning and it still doesnt seem to be pullng stats from deepbit =/ think I will wait for a bit more code updates =)

GenTarkin's MOD Kncminer Titan custom firmware! v1.0.4! <--- CLICK HERE
Donations: bitcoin- 1Px71mWNQNKW19xuARqrmnbcem1dXqJ3At || litecoin- LYXrLis3ik6TRn8tdvzAyJ264DRvwYVeEw
c00w
Full Member
***
Offline Offline

Activity: 196


View Profile
August 07, 2011, 07:29:33 PM
 #2808

@GenTarkin
Can you post your error logs? I can't fix things if I don't see what broke. And it seems to be working on my machine.

1HEmzeuVEKxBQkEenysV1yM8oAddQ4o2TX
ewibit
Legendary
*
Offline Offline

Activity: 1745


View Profile
August 07, 2011, 07:33:32 PM
 #2809

Can you post your error logs? I can't fix things if I don't see what broke. And it seems to be working on my machine.
Code:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 519, in connectionLost
    protocol.connectionLost(reason)
  File "/home/xxx/bh/bitHopper/_newclient.py", line 823, in dispatcher
    return func(*args, **kwargs)
  File "/home/xxx/bh/bitHopper/_newclient.py", line 1427, in _connectionLost_WAITING
    self._disconnectParser(reason)
  File "/home/xxx/bh/bitHopper/_newclient.py", line 1356, in _disconnectParser
    parser.connectionLost(reason)
--- <exception caught here> ---
  File "/home/xxx/bh/bitHopper/_newclient.py", line 486, in connectionLost
    self.bodyDecoder.noMoreData()
  File "/usr/lib/python2.7/dist-packages/twisted/web/http.py", line 1388, in noMoreData
    finishCallback('')
  File "/home/xxx/bh/bitHopper/_newclient.py", line 401, in _finished
    self.finisher(rest)
  File "/home/xxx/bh/bitHopper/_newclient.py", line 1331, in _finishResponse
    connHeaders = self._parser.connHeaders.getRawHeaders('connection')
exceptions.AttributeError: 'NoneType' object has no attribute 'connHeaders'
bitcoindaddy
Hero Member
*****
Offline Offline

Activity: 481


View Profile
August 07, 2011, 07:34:55 PM
 #2810

So I added deepbit hopping support. Just start with --startLP. Otherwise nothing has changed. Oh and deepbit needs to have the role mine_deepbit. It should also work for btcg.

Oh and this is extremely beta. I wrote it in the last 2 hours. It runs and appears to work.

Can you explain the theory behind it?
paraipan
Legendary
*
Offline Offline

Activity: 924


Firstbits: 1pirata


View Profile WWW
August 07, 2011, 07:36:40 PM
 #2811

can't manage to start it   (Updating 1ec4533..91a6645)

Code:
alex@56h777h856jnu6t:~/bitHopper$ python bitHopper.py --startLP
[21:35:58] Updating Difficulty
[21:36:00] 1888786.7053531
[21:36:00] Updating NameCoin Difficulty
[21:36:00] 94037.96
[21:36:00] Checking Database
[21:36:00] DB Verson: 0.2
[21:36:00] Database Setup
[21:36:00] writing to database
Usage: bitHopper.py [options]

bitHopper.py: error: no such option: --startLP
alex@56h777h856jnu6t:~/bitHopper$

edit: fixed, I just managed to screw things a little bit with my folders Smiley

BTCitcoin: An Idea Worth Saving - Q&A with bitcoins on rugatu.com - Check my rep
GenTarkin
Legendary
*
Offline Offline

Activity: 1918


View Profile
August 07, 2011, 07:39:01 PM
 #2812

Can you post your error logs? I can't fix things if I don't see what broke. And it seems to be working on my machine.
Code:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 519, in connectionLost
    protocol.connectionLost(reason)
  File "/home/xxx/bh/bitHopper/_newclient.py", line 823, in dispatcher
    return func(*args, **kwargs)
  File "/home/xxx/bh/bitHopper/_newclient.py", line 1427, in _connectionLost_WAITING
    self._disconnectParser(reason)
  File "/home/xxx/bh/bitHopper/_newclient.py", line 1356, in _disconnectParser
    parser.connectionLost(reason)
--- <exception caught here> ---
  File "/home/xxx/bh/bitHopper/_newclient.py", line 486, in connectionLost
    self.bodyDecoder.noMoreData()
  File "/usr/lib/python2.7/dist-packages/twisted/web/http.py", line 1388, in noMoreData
    finishCallback('')
  File "/home/xxx/bh/bitHopper/_newclient.py", line 401, in _finished
    self.finisher(rest)
  File "/home/xxx/bh/bitHopper/_newclient.py", line 1331, in _finishResponse
    connHeaders = self._parser.connHeaders.getRawHeaders('connection')
exceptions.AttributeError: 'NoneType' object has no attribute 'connHeaders'

The above quoted is the exact error I Get as well =)

GenTarkin's MOD Kncminer Titan custom firmware! v1.0.4! <--- CLICK HERE
Donations: bitcoin- 1Px71mWNQNKW19xuARqrmnbcem1dXqJ3At || litecoin- LYXrLis3ik6TRn8tdvzAyJ264DRvwYVeEw
djex
Full Member
***
Offline Offline

Activity: 196


View Profile
August 07, 2011, 07:40:02 PM
 #2813

Update to python 2.7. I'll add in a catch but you won't get sorting.

EDIT: Catch is added, update and see if it works.

Yeah works now. Going to update to 2.7

Smiley  : 1LbvSEJwtQZKLSQQVYxQJes8YneQk2yhE3
c00w
Full Member
***
Offline Offline

Activity: 196


View Profile
August 07, 2011, 07:51:38 PM
 #2814

Oh. I get that error as well. For some reason one of the LP sites is pushing out uniquely bad data. You can ignore it. I'll add an errBack for it.

1HEmzeuVEKxBQkEenysV1yM8oAddQ4o2TX
GenTarkin
Legendary
*
Offline Offline

Activity: 1918


View Profile
August 07, 2011, 07:52:43 PM
 #2815

Oh. I get that error as well. For some reason one of the LP sites is pushing out uniquely bad data. You can ignore it. I'll add an errBack for it.

Cool, how would one know if deepbit is working? Cuz, I still see no polling on them using --startLP and the stats on the localhost stat page dont update at all...

And what scheduler is known best right now? ... since I dont really know the diff between them....

GenTarkin's MOD Kncminer Titan custom firmware! v1.0.4! <--- CLICK HERE
Donations: bitcoin- 1Px71mWNQNKW19xuARqrmnbcem1dXqJ3At || litecoin- LYXrLis3ik6TRn8tdvzAyJ264DRvwYVeEw
paraipan
Legendary
*
Offline Offline

Activity: 924


Firstbits: 1pirata


View Profile WWW
August 07, 2011, 07:54:16 PM
 #2816

another for the collection

Code:
[21:51:45] LP Call mtred.com:8337/LP
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 519, in connectionLost
    protocol.connectionLost(reason)
  File "/home/alex/bitHopper/_newclient.py", line 823, in dispatcher
    return func(*args, **kwargs)
  File "/home/alex/bitHopper/_newclient.py", line 1427, in _connectionLost_WAITING
    self._disconnectParser(reason)
  File "/home/alex/bitHopper/_newclient.py", line 1356, in _disconnectParser
    parser.connectionLost(reason)
--- <exception caught here> ---
  File "/home/alex/bitHopper/_newclient.py", line 486, in connectionLost
    self.bodyDecoder.noMoreData()
  File "/usr/lib/python2.7/dist-packages/twisted/web/http.py", line 1388, in noMoreData
    finishCallback('')
  File "/home/alex/bitHopper/_newclient.py", line 401, in _finished
    self.finisher(rest)
  File "/home/alex/bitHopper/_newclient.py", line 1331, in _finishResponse
    connHeaders = self._parser.connHeaders.getRawHeaders('connection')
exceptions.AttributeError: 'NoneType' object has no attribute 'connHeaders'
[21:51:45] polmine: 2171745

BTCitcoin: An Idea Worth Saving - Q&A with bitcoins on rugatu.com - Check my rep
joulesbeef
Sr. Member
****
Offline Offline

Activity: 476


moOo


View Profile
August 07, 2011, 08:01:51 PM
 #2817

cow you said it should work with btcguild.. but should it work with btcguild and deepbit at the same time?
arent you kinda guessing if deep has a block?

mooo for rent
c00w
Full Member
***
Offline Offline

Activity: 196


View Profile
August 07, 2011, 08:05:33 PM
 #2818

And I can't figure out where that stupid error is coming from...
EDIT: I fixed it. Update

This is very highly formalized guessing. It should work though. Basically if it gets the LP for the current block from deepbit first and no other blocks apis go down b/c they found a block it assumes it is from deepbit. Same thing for btcguild if you set that up. It will slice deepbit until another block is found by someone else.

1HEmzeuVEKxBQkEenysV1yM8oAddQ4o2TX
djex
Full Member
***
Offline Offline

Activity: 196


View Profile
August 07, 2011, 08:10:26 PM
 #2819

Is the stats page delayed on deepbit as well? If not then couldn't you tell if there was a new block started by seeing when the last block was submitted or even if if a new block was added to the found blocks stats? If you can figure out what time the server is in you could even figure out how long the new block was running for from the last block found time. I may wrong about all this, just a thought I had.

Edit: Never mind the stats are delayed.

Smiley  : 1LbvSEJwtQZKLSQQVYxQJes8YneQk2yhE3
GenTarkin
Legendary
*
Offline Offline

Activity: 1918


View Profile
August 07, 2011, 08:10:43 PM
 #2820

slush's pool hopping seems to join and then hop out till about 11% is this correct behaviour? It doesnt touch slush till it finds it below 11% again...correct as well?

I notice my shares value decay on slush after 11% .. I assume this is correct behaviour because we are just hoping round time will be really lucky and our shares actually be valuable?

GenTarkin's MOD Kncminer Titan custom firmware! v1.0.4! <--- CLICK HERE
Donations: bitcoin- 1Px71mWNQNKW19xuARqrmnbcem1dXqJ3At || litecoin- LYXrLis3ik6TRn8tdvzAyJ264DRvwYVeEw
Pages: « 1 ... 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 [141] 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 ... 205 »
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!