Bitcoin Forum
April 27, 2024, 12:42:04 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
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 355551 times)
paraipan
In memoriam
Legendary
*
Offline Offline

Activity: 924
Merit: 1004


Firstbits: 1pirata


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

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
1714221724
Hero Member
*
Offline Offline

Posts: 1714221724

View Profile Personal Message (Offline)

Ignore
1714221724
Reply with quote  #2

1714221724
Report to moderator
1714221724
Hero Member
*
Offline Offline

Posts: 1714221724

View Profile Personal Message (Offline)

Ignore
1714221724
Reply with quote  #2

1714221724
Report to moderator
The network tries to produce one block per 10 minutes. It does this by automatically adjusting how difficult it is to produce blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714221724
Hero Member
*
Offline Offline

Posts: 1714221724

View Profile Personal Message (Offline)

Ignore
1714221724
Reply with quote  #2

1714221724
Report to moderator
c00w (OP)
Full Member
***
Offline Offline

Activity: 196
Merit: 100


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

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: 2450
Merit: 1002


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

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! -- !!NO LONGER AVAILABLE!!
Donations: bitcoin- 1Px71mWNQNKW19xuARqrmnbcem1dXqJ3At || litecoin- LYXrLis3ik6TRn8tdvzAyJ264DRvwYVeEw
c00w (OP)
Full Member
***
Offline Offline

Activity: 196
Merit: 100


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

@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: 2955
Merit: 1049


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

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
Merit: 500


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

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
In memoriam
Legendary
*
Offline Offline

Activity: 924
Merit: 1004


Firstbits: 1pirata


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

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: 2450
Merit: 1002


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

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! -- !!NO LONGER AVAILABLE!!
Donations: bitcoin- 1Px71mWNQNKW19xuARqrmnbcem1dXqJ3At || litecoin- LYXrLis3ik6TRn8tdvzAyJ264DRvwYVeEw
djex
Full Member
***
Offline Offline

Activity: 196
Merit: 100


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

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 (OP)
Full Member
***
Offline Offline

Activity: 196
Merit: 100


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

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: 2450
Merit: 1002


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

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! -- !!NO LONGER AVAILABLE!!
Donations: bitcoin- 1Px71mWNQNKW19xuARqrmnbcem1dXqJ3At || litecoin- LYXrLis3ik6TRn8tdvzAyJ264DRvwYVeEw
paraipan
In memoriam
Legendary
*
Offline Offline

Activity: 924
Merit: 1004


Firstbits: 1pirata


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

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
Merit: 250


moOo


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

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 (OP)
Full Member
***
Offline Offline

Activity: 196
Merit: 100


View Profile
August 07, 2011, 08:05:33 PM
Last edit: August 07, 2011, 08:20:31 PM by c00w
 #2814

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
Merit: 100


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

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: 2450
Merit: 1002


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

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! -- !!NO LONGER AVAILABLE!!
Donations: bitcoin- 1Px71mWNQNKW19xuARqrmnbcem1dXqJ3At || litecoin- LYXrLis3ik6TRn8tdvzAyJ264DRvwYVeEw
MaGNeT
Legendary
*
Offline Offline

Activity: 1526
Merit: 1002


Waves | 3PHMaGNeTJfqFfD4xuctgKdoxLX188QM8na


View Profile WWW
August 07, 2011, 08:11:20 PM
 #2817

Лoгин worker'a Bpeмя пocлeднeгo peшeния Peшeний зa payнд Пpимepнaя cкopocть (MH/s) Пpимepнaя дoxoд worker'a
MaGNeT 2011-08-07 21:45:34 1011 2090 2.03167075

 Grin
c00w (OP)
Full Member
***
Offline Offline

Activity: 196
Merit: 100


View Profile
August 07, 2011, 08:13:39 PM
 #2818

I found the error. I should probably submit it to twisted.

@gentarkin
Yeah that is the behavior we want.

1HEmzeuVEKxBQkEenysV1yM8oAddQ4o2TX
GenTarkin
Legendary
*
Offline Offline

Activity: 2450
Merit: 1002


View Profile
August 07, 2011, 08:15:24 PM
 #2819

I found the error. I should probably submit it to twisted.

@gentarkin
Yeah that is the behavior we want.

Cool, so all other prop pools, well most of the other ones we mine till approx half difficulty? then hop to another pool lower than that or backup?

Hehe, just tryin to wrap my head around how all this works.

GenTarkin's MOD Kncminer Titan custom firmware! v1.0.4! -- !!NO LONGER AVAILABLE!!
Donations: bitcoin- 1Px71mWNQNKW19xuARqrmnbcem1dXqJ3At || litecoin- LYXrLis3ik6TRn8tdvzAyJ264DRvwYVeEw
c00w (OP)
Full Member
***
Offline Offline

Activity: 196
Merit: 100


View Profile
August 07, 2011, 08:16:20 PM
 #2820

Yeah. Its 43% for prop pools. 10% for slush style pools.

1HEmzeuVEKxBQkEenysV1yM8oAddQ4o2TX
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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!