Bitcoin Forum
April 26, 2024, 11:15:15 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 [10] 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 ... 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
July 14, 2011, 11:27:21 AM
 #181

hey ppl, if you want pretty stats and pool fail-over protection I recommend you install a proxy (https://github.com/cdhowie/Bitcoin-mining-proxy) Have been running proxy-bithopper setup for 48 hours with no issues. With the proxy in between you can have your friends help you and hop together Smiley  Thanks c00w for making a great script. Now my miners never idle.

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

Posts: 1714130115

View Profile Personal Message (Offline)

Ignore
1714130115
Reply with quote  #2

1714130115
Report to moderator
1714130115
Hero Member
*
Offline Offline

Posts: 1714130115

View Profile Personal Message (Offline)

Ignore
1714130115
Reply with quote  #2

1714130115
Report to moderator
1714130115
Hero Member
*
Offline Offline

Posts: 1714130115

View Profile Personal Message (Offline)

Ignore
1714130115
Reply with quote  #2

1714130115
Report to moderator
BitcoinCleanup.com: Learn why Bitcoin isn't bad for the environment
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714130115
Hero Member
*
Offline Offline

Posts: 1714130115

View Profile Personal Message (Offline)

Ignore
1714130115
Reply with quote  #2

1714130115
Report to moderator
1714130115
Hero Member
*
Offline Offline

Posts: 1714130115

View Profile Personal Message (Offline)

Ignore
1714130115
Reply with quote  #2

1714130115
Report to moderator
kripz
Full Member
***
Offline Offline

Activity: 182
Merit: 100


View Profile
July 14, 2011, 11:35:34 AM
 #182

those 2 projects should jsut get together Cheesy

 Merged mining, free SMS notifications, PayPal payout and much more.
http://btcstats.net/sig/JZCODg2
organofcorti
Donator
Legendary
*
Offline Offline

Activity: 2058
Merit: 1007


Poor impulse control.


View Profile WWW
July 14, 2011, 11:42:03 AM
 #183


Show/share your code, otherwise it's a bit hard to tell where you are missing something.


Thanks for the response, Sukrim. I didn't post the code because it ran well in yesterday's version. I'm just following on from the existing code and making a change based on the api. The code goes where the other relevant lines are (i'm sure you recognise the stanzas - no line numbers, I'm doing this out of notepad, sorry.)

passwords.py:
Code:
ozcoin_user = 'user.0'
ozcoin_pass = 'pass.0'

pool.py:

Code:
	'ozcoin':{'shares': default_shares, 'name': 'ozcoin',
            'mine_address': 'ozco.in:8332', 'user': ozcoin_user,
            'pass': ozcoin_pass, 'lag': False, 'LP': None,
            'api_address':'https://ozco.in/api.php', 'role':'info'},

.....



def ozcoin_sharesResponse(response):
    global servers
    info = json.loads(response)
    round_shares = int(info['shares'])
    servers['ozcoin']['shares'] = round_shares
    bitHopper.log_msg( 'ozcoin :' + str(round_shares))

.....

'ozcoin':ozcoin_sharesResponse,


 This works fine in yesterdays 'hopper, but with with the further split today in bitHopper.py from pool.py I think I've missed something new. I can't see any reference to pool names in bitHopper.py

Any ideas, mate?

Bitcoin network and pool analysis 12QxPHEuxDrs7mCyGSx1iVSozTwtquDB3r
follow @oocBlog for new post notifications
OCedHrt
Member
**
Offline Offline

Activity: 111
Merit: 10


View Profile
July 14, 2011, 11:44:17 AM
 #184


Show/share your code, otherwise it's a bit hard to tell where you are missing something.


Thanks for the response, Sukrim. I didn't post the code because it ran well in yesterday's version. I'm just following on from the existing code and making a change based on the api. The code goes where the other relevant lines are (i'm sure you recognise the stanzas - no line numbers, I'm doing this out of notepad, sorry.)

passwords.py:
Code:
ozcoin_user = 'user.0'
ozcoin_pass = 'pass.0'

pool.py:

Code:
	'ozcoin':{'shares': default_shares, 'name': 'ozcoin',
            'mine_address': 'ozco.in:8332', 'user': ozcoin_user,
            'pass': ozcoin_pass, 'lag': False, 'LP': None,
            'api_address':'https://ozco.in/api.php', 'role':'info'},

.....



def ozcoin_sharesResponse(response):
    global servers
    info = json.loads(response)
    round_shares = int(info['shares'])
    servers['ozcoin']['shares'] = round_shares
    bitHopper.log_msg( 'ozcoin :' + str(round_shares))

.....

'ozcoin':ozcoin_sharesResponse,


 This works fine in yesterdays 'hopper, but with with the further split today in bitHopper.py from pool.py I think I've missed something new. I can't see any reference to pool names in bitHopper.py

Any ideas, mate?

role needs to be 'mine'

ALL.ME  ●●●  SOCIAL NETWORK OF THE BLOCKCHAIN TIME ●●●
▄▄▄▬▬▄▄▄  Bounty all.me ▶ Jan 29th - May 8th 2018  ▄▄▄▬▬▄▄▄
Facebook   ▲   Twitter   ▲   Telegram
Sukrim
Legendary
*
Offline Offline

Activity: 2618
Merit: 1006


View Profile
July 14, 2011, 11:46:04 AM
 #185

those 2 projects should jsut get together Cheesy
Yeah because php and Python are the same language... NOT! Tongue

About Ozcoin:
try it with 'role':'mine' instead of info... Smiley

https://www.coinlend.org <-- automated lending at various exchanges.
https://www.bitfinex.com <-- Trade BTC for other currencies and vice versa.
OCedHrt
Member
**
Offline Offline

Activity: 111
Merit: 10


View Profile
July 14, 2011, 11:54:56 AM
 #186

Its hash rate when the block is found. And my efficiency is about 76%. If yours is higher or you want to use it go right ahead. I'm disabling it because I'd rather mine on eligius.

They still claim proportional on the forums. 321 shares @ 853012 shares in round at 0.5% fee comes out to 0.01862752 while the dashboard is reporting ~0.01862784. Sounds about right. Though not sure about the bad efficiency.

ALL.ME  ●●●  SOCIAL NETWORK OF THE BLOCKCHAIN TIME ●●●
▄▄▄▬▬▄▄▄  Bounty all.me ▶ Jan 29th - May 8th 2018  ▄▄▄▬▬▄▄▄
Facebook   ▲   Twitter   ▲   Telegram
organofcorti
Donator
Legendary
*
Offline Offline

Activity: 2058
Merit: 1007


Poor impulse control.


View Profile WWW
July 14, 2011, 12:05:10 PM
 #187

Thanks Sukrim and OCedHrt - you just saved me hours on eligius - not that that's bad thing, just not exciting. I owe you both.

btw, why use two proxies?

Bitcoin network and pool analysis 12QxPHEuxDrs7mCyGSx1iVSozTwtquDB3r
follow @oocBlog for new post notifications
Sukrim
Legendary
*
Offline Offline

Activity: 2618
Merit: 1006


View Profile
July 14, 2011, 12:12:51 PM
 #188

Its hash rate when the block is found. And my efficiency is about 76%. If yours is higher or you want to use it go right ahead. I'm disabling it because I'd rather mine on eligius.

They still claim proportional on the forums. 321 shares @ 853012 shares in round at 0.5% fee comes out to 0.01862752 while the dashboard is reporting ~0.01862784. Sounds about right. Though not sure about the bad efficiency.
I have still 115 MH/s displayed there for the last 15 minutes, though my miner was not even online in the last few hours. I think there's something broken on their end... We'll see after this round if we still get paid or not (if yes --> prop, if not --> PPL15M)

https://www.coinlend.org <-- automated lending at various exchanges.
https://www.bitfinex.com <-- Trade BTC for other currencies and vice versa.
OCedHrt
Member
**
Offline Offline

Activity: 111
Merit: 10


View Profile
July 14, 2011, 12:19:00 PM
 #189

Its hash rate when the block is found. And my efficiency is about 76%. If yours is higher or you want to use it go right ahead. I'm disabling it because I'd rather mine on eligius.

They still claim proportional on the forums. 321 shares @ 853012 shares in round at 0.5% fee comes out to 0.01862752 while the dashboard is reporting ~0.01862784. Sounds about right. Though not sure about the bad efficiency.
I have still 115 MH/s displayed there for the last 15 minutes, though my miner was not even online in the last few hours. I think there's something broken on their end... We'll see after this round if we still get paid or not (if yes --> prop, if not --> PPL15M)

It's definitely prop, but they have really bad luck. Do that math on their block statistics.

A total of 22774221 shares for the last 13 blocks. That's 0.00002854/share. Or 1751863 shares/block. And 48428226 for the last 25 blocks. That's even worse at 1937129 shares/block.

Either really bad luck or someone is share stuffing/block stealing. This is compared to 29438078 shares for the last 25 blocks at mineco - coming out to 1177523 shares/block.

ALL.ME  ●●●  SOCIAL NETWORK OF THE BLOCKCHAIN TIME ●●●
▄▄▄▬▬▄▄▄  Bounty all.me ▶ Jan 29th - May 8th 2018  ▄▄▄▬▬▄▄▄
Facebook   ▲   Twitter   ▲   Telegram
paraipan
In memoriam
Legendary
*
Offline Offline

Activity: 924
Merit: 1004


Firstbits: 1pirata


View Profile WWW
July 14, 2011, 12:21:56 PM
 #190

Haha, I know it´s a little dumb (running 2 proxys) but every one has it´s pros and cons. With the php proxy in between bithopper and miner can have nice graphs and stats without buggin´ c00w to implement it. Have various friends connect to me and hop them on the same pool I am working thanks to bithopper and share rewards after counting the shares in a adjustable time-frame. If hopper fails for some reason (which happen allot when something is hours new creation) have all my workers mine for a backup pool till a I see what happened or restart bithopper.

Btw, would like an option to shutdown nicely bithopper that passes done work and stop getting new one (don´t really like brute force method ctrl-c )

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

Activity: 2618
Merit: 1006


View Profile
July 14, 2011, 12:29:41 PM
 #191

Thanks Sukrim and OCedHrt - you just saved me hours on eligius - not that that's bad thing, just not exciting. I owe you both.
A pleasure! Wink

ozcoin seems really hot atm, so thanks for sharing that code! They also already have ~80 GH/s, so not too bad (one might get "stuck" if we include very tiny pools and the higher chance of getting scammed there is not in the calculation... Roll Eyes)

https://www.coinlend.org <-- automated lending at various exchanges.
https://www.bitfinex.com <-- Trade BTC for other currencies and vice versa.
OCedHrt
Member
**
Offline Offline

Activity: 111
Merit: 10


View Profile
July 14, 2011, 12:32:25 PM
 #192

Thanks Sukrim and OCedHrt - you just saved me hours on eligius - not that that's bad thing, just not exciting. I owe you both.
A pleasure! Wink

ozcoin seems really hot atm, so thanks for sharing that code! They also already have ~80 GH/s, so not too bad (one might get "stuck" if we include very tiny pools and the higher chance of getting scammed there is not in the calculation... Roll Eyes)

Let me give ozcoin a try as well, since stuck on eligius right now.

I re-enabled bitclockers but re-adjusted their share count for their crappy luck (shares / (0.78 / 1.28)) or something like that.

ALL.ME  ●●●  SOCIAL NETWORK OF THE BLOCKCHAIN TIME ●●●
▄▄▄▬▬▄▄▄  Bounty all.me ▶ Jan 29th - May 8th 2018  ▄▄▄▬▬▄▄▄
Facebook   ▲   Twitter   ▲   Telegram
paraipan
In memoriam
Legendary
*
Offline Offline

Activity: 924
Merit: 1004


Firstbits: 1pirata


View Profile WWW
July 14, 2011, 12:40:25 PM
 #193

mind-blowing thought... In an not very far future the pool operators will be asking bithopper rotation to increase the chances finding a block a little bit faster Smiley

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

Activity: 66
Merit: 10



View Profile
July 14, 2011, 12:55:03 PM
 #194

Just saw this error pop up while watching output:

Code:
Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
  File "d:\python27\lib\site-packages\twisted\internet\defer.py", line 1076, in
gotResult
    _inlineCallbacks(r, g, deferred)
  File "d:\python27\lib\site-packages\twisted\internet\defer.py", line 1020, in
_inlineCallbacks
    result = g.send(result)
  File "D:\Bithopper\work.py", line 66, in jsonrpc_lpcall
    d = update(body)
  File "d:\python27\lib\site-packages\twisted\internet\defer.py", line 1141, in
unwindGenerator
    return _inlineCallbacks(None, f(*args, **kwargs), Deferred())
--- <exception caught here> ---
  File "d:\python27\lib\site-packages\twisted\internet\defer.py", line 1020, in
_inlineCallbacks
    result = g.send(result)
  File "D:\Bithopper\lp.py", line 25, in update_lp
    except ResponseFailed:
exceptions.NameError: global name 'ResponseFailed' is not defined

Clipse
Hero Member
*****
Offline Offline

Activity: 504
Merit: 502


View Profile
July 14, 2011, 01:46:10 PM
 #195

Does anyone know why im getting these API errors for bitclockers/bitpit ?


Code:
Error in user api for bitp
"[Failure instance: Traceback: <type 'exceptions.ZeroDivisionError'>: float division by zero\n/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:1076:gotResult\n/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:1063:_inlineCallbacks\n/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:361:callback\n/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:455:_startRunCallbacks\n--- <exception caught here> ---\n/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:542:_runCallbacks\n/home/miner1/bitHopper/stats.py:65:selectsharesResponse\n/home/miner1/bitHopper/stats.py:55:parse_bitp\n]"

Code:
"[Failure instance: Traceback: <type 'exceptions.ZeroDivisionError'>: float division by zero\n/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:1076:gotResult\n/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:1063:_inlineCallbacks\n/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:361:callback\n/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:455:_startRunCallbacks\n--- <exception caught here> ---\n/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:542:_runCallbacks\n/home/miner1/bitHopper/stats.py:65:selectsharesResponse\n/home/miner1/bitHopper/stats.py:39:parse_bitclockers\n]"

...In the land of the stale, the man with one share is king... >> Clipse

We pay miners at 130% PPS | Signup here : Bonus PPS Pool (Please read OP to understand the current process)
joulesbeef
Sr. Member
****
Offline Offline

Activity: 476
Merit: 250


moOo


View Profile
July 14, 2011, 01:52:28 PM
 #196

I get error in my api for bitclockers and same for btcguild.. tripple checked the api..


and is there anyway I can copy the the output I see in my command prompt window in windows? Or output the errors to a text file so I can be more concise?

says something about a divide by zero error.. running python 2.7.. error message  seems to be coming from twisted

edit: thanks koopa


Code:
[09:57:14] mining.mainframe.nl :3661888
[09:57:14] Server change to eligius, telling client with LP
[09:57:15] mtred :1467948
[09:57:16] bitclockers :1149461
[09:57:16] Error in user api for bitclockers
"[Failure instance: Traceback: <type 'exceptions.ZeroDivisionError'>: float divi
sion by zero\nD:\\Python27\\lib\\site-packages\\twisted\\internet\\defer.py:1076
:gotResult\nD:\\Python27\\lib\\site-packages\\twisted\\internet\\defer.py:1063:_
inlineCallbacks\nD:\\Python27\\lib\\site-packages\\twisted\\internet\\defer.py:3
61:callback\nD:\\Python27\\lib\\site-packages\\twisted\\internet\\defer.py:455:_
startRunCallbacks\n--- <exception caught here> ---\nD:\\Python27\\lib\\site-pack
ages\\twisted\\internet\\defer.py:542:_runCallbacks\nD:\\Users\\joulesbeef\\Down
loads\\c00w-bitHopper-8324470\\c00w-bitHopper-8324470\\stats.py:65:selectsharesR
esponse\nD:\\Users\\joulesbeef\\Downloads\\c00w-bitHopper-8324470\\c00w-bitHoppe
r-8324470\\stats.py:39:parse_bitclockers\n]"
[09:57:16] bitp.it efficiency: 501.717153311%
[09:57:16] pool.bitp.it :1086776
[09:57:16] Error in user api for btcg
"[Failure instance: Traceback: <type 'exceptions.ZeroDivisionError'>: float divi
sion by zero\nD:\\Python27\\lib\\site-packages\\twisted\\internet\\defer.py:1076
:gotResult\nD:\\Python27\\lib\\site-packages\\twisted\\internet\\defer.py:1063:_
inlineCallbacks\nD:\\Python27\\lib\\site-packages\\twisted\\internet\\defer.py:3
61:callback\nD:\\Python27\\lib\\site-packages\\twisted\\internet\\defer.py:455:_
startRunCallbacks\n--- <exception caught here> ---\nD:\\Python27\\lib\\site-pack
ages\\twisted\\internet\\defer.py:542:_runCallbacks\nD:\\Users\\joulesbeef\\Down
loads\\c00w-bitHopper-8324470\\c00w-bitHopper-8324470\\stats.py:65:selectsharesR
esponse\nD:\\Users\\joulesbeef\\Downloads\\c00w-bitHopper-8324470\\c00w-bitHoppe
r-8324470\\stats.py:23:parse_btcguild\n]"
[09:57:16] mineco :236436
[09:57:16] btcguild :468482
[09:57:16] Server change to btcg, telling client with LP
[09:57:17] eclipsemc :3709664
[09:57:21] bitcoin.lc :4486079

mooo for rent
koopa
Member
**
Offline Offline

Activity: 61
Merit: 10



View Profile
July 14, 2011, 01:56:26 PM
 #197

I get error in my api for bitclockers and same for btcguild.. tripple checked the api..


and is there anyway I can copy the the output I see in my command prompt window in windows? Or output the errors to a text file so I can be more concise?

To copy output from cmd window.. right click the top of the winodw -> Edit -> Mark.

Mark the text you wish to copy.

Right click the top of the winodw -> Edit -> Copy.

Grin
Sukrim
Legendary
*
Offline Offline

Activity: 2618
Merit: 1006


View Profile
July 14, 2011, 02:01:56 PM
 #198

Efficiency is kinda neat, but

Quote
15:57:40] btcguild efficiency: 873998.638431%

sounds a little bit off... Wink

Reason:
You only take into account the current difficulty. With this I really would be the king of all hoppers... but as I mined in the past already quite a bit (I'm one of the first miners there) this screws the results "a bit".

https://www.coinlend.org <-- automated lending at various exchanges.
https://www.bitfinex.com <-- Trade BTC for other currencies and vice versa.
callmeivan
Newbie
*
Offline Offline

Activity: 33
Merit: 0


View Profile
July 14, 2011, 02:03:07 PM
 #199

mind-blowing thought... In an not very far future the pool operators will be asking bithopper rotation to increase the chances finding a block a little bit faster Smiley

mind-blowing thought... In an not very far future small pool operators will have lost all their users to the biggest pools out there were hopping is either not possible or irrelevant.

You guys walk in and raid little pools of existing users and "steal" part of their profits.
OCedHrt
Member
**
Offline Offline

Activity: 111
Merit: 10


View Profile
July 14, 2011, 02:05:14 PM
 #200

Efficiency is kinda neat, but

Quote
15:57:40] btcguild efficiency: 873998.638431%

sounds a little bit off... Wink

Reason:
You only take into account the current difficulty. With this I really would be the king of all hoppers... but as I mined in the past already quite a bit (I'm one of the first miners there) this screws the results "a bit".

Not just that, btcguild lost all past share count after the last DDOS. At least for me anyways.

ALL.ME  ●●●  SOCIAL NETWORK OF THE BLOCKCHAIN TIME ●●●
▄▄▄▬▬▄▄▄  Bounty all.me ▶ Jan 29th - May 8th 2018  ▄▄▄▬▬▄▄▄
Facebook   ▲   Twitter   ▲   Telegram
Pages: « 1 2 3 4 5 6 7 8 9 [10] 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 ... 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!