Bitcoin Forum
December 07, 2016, 10:34:48 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: « 1 ... 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 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 ... 205 »
  Print  
Author Topic: bitHopper: Python Pool Hopper Proxy  (Read 332850 times)
phorensic
Hero Member
*****
Offline Offline

Activity: 630



View Profile
July 25, 2011, 06:44:22 PM
 #1041

OK bitHoppers, I have created a simple JSON api that will feed your script without destroying our server.  Please use https://bitcoinmonkey.com/json/api.php .  Also, please note that we have full SSL support.  The config in bitHopper was using the non-SSL port of our Apache.

I will slowly start unblocking IP's so those of you using bitHopper will regain access.
1481106889
Hero Member
*
Offline Offline

Posts: 1481106889

View Profile Personal Message (Offline)

Ignore
1481106889
Reply with quote  #2

1481106889
Report to moderator
1481106889
Hero Member
*
Offline Offline

Posts: 1481106889

View Profile Personal Message (Offline)

Ignore
1481106889
Reply with quote  #2

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

Posts: 1481106889

View Profile Personal Message (Offline)

Ignore
1481106889
Reply with quote  #2

1481106889
Report to moderator
1481106889
Hero Member
*
Offline Offline

Posts: 1481106889

View Profile Personal Message (Offline)

Ignore
1481106889
Reply with quote  #2

1481106889
Report to moderator
1481106889
Hero Member
*
Offline Offline

Posts: 1481106889

View Profile Personal Message (Offline)

Ignore
1481106889
Reply with quote  #2

1481106889
Report to moderator
hawks5999
Full Member
***
Offline Offline

Activity: 168



View Profile WWW
July 25, 2011, 07:12:31 PM
 #1042

Grin





Probably beats the alternative of never finding a block. BitHoppers may fly away with some profits, but at least you have profits. Otherwise you just sit and burn electricity and wear down your components.

Funny thing is you could probably go back 6 months and find complaints about pools.
And go back further and find complaints about GPU miners.

Next up: complaints about p2pool destroying all other pools
Then: complaints about FPGA miners destroying all our investments in GPUs.

It's called evolution.

Let's face it, by the time the 21st million block is found there will be 3 international mining conglomerates left fighting over that last satoshi. Probably they will be Visa-Mart (from the 2024 merger of MasterVisa (2019) and WalCosTarget-Mart (2020) representing consumer financial), Chase-Exxon (from the 2027 merger of Chase-Sachs (2016 when JPMChase takes over every other Wall Street bank) and Exxon-BP (2014) representing institutional energy and finance)  and GMBY (which will be a global GSE a la FNMA - and yes it will be pronounced "Gumby"). They will have a combined 97% of the hashing power and the other 3% will be the small gamblers hoping to compete with their personal 2 Exahash/s Intel Quantum Home PCs. There will be probably 10,000 or so of these miners. Probably none of us will be them...

■ ▄▄▄
■ ███
■ ■  ■               
LEDGER  WALLET    ████
■■■ ORDER NOW! ■■■
              LEDGER WALLET
Smartcard security for your BTCitcoins
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
Decentralized. Open. Secure.
enmaku
Hero Member
*****
Offline Offline

Activity: 742



View Profile WWW
July 25, 2011, 07:14:25 PM
 #1043

It's called evolution.

Indeed, and it works MUCH faster in the IT world than in nature. The people complaining are almost always the ones who can't keep up.

paraipan
Legendary
*
Offline Offline

Activity: 924


Firstbits: 1pirata


View Profile WWW
July 25, 2011, 07:15:16 PM
 #1044

@hawks5999 nice... my imagination just got loose

just managed to conf. bitcoinmonkey (thanks phorensic)

Code:
[btcmonkey]
name: bitcoinmonkey.com
mine_address: bitcoinmonkey.com:8332
api_address: https://bitcoinmonkey.com/json/api.php
api_method:json
api_key:shares_this_round
role: info
#CHANGE THIS
#http://bitcoinmonkey.com/
user: x
pass: x

(i get an api error though, shit)

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

Activity: 42


View Profile
July 25, 2011, 07:26:30 PM
 #1045

  • Merged flower's time slicing mod
  • Added startup options to enable slicing (off by default) and set slicing size
  • Also showed slice (seconds) left in web stats as well
  • Refactored backup server into it's own function
  • Added additional parameters to log_msg and log_dbg to prefix log messages

Available in my tree for now: https://github.com/echiu64/bitHopper

Feel free to pull back into your respective trees.

Only tested it briefly... more changes to come.

Tested it for a few hours now, made a few more changes pushed to git (penalty wasn't being factored in the initial commit). Looks like it works. Threw in btcg for fun, time slicing between 3 pools now...

Send your BTC to a loving home: 1CWjg4soWEAQjMD4dCchdPpJ6fWDBRUU5b
Github: https://github.com/echiu64/
ewibit
Legendary
*
Offline Offline

Activity: 1745


View Profile
July 25, 2011, 07:28:57 PM
 #1046

is this worth to be a
backup pool?

since today it is possible PPS
and 1.95 BTC Bonus for block finding
---------------------------

[btcpool24]
name:btcpool24
mine_address:min.btcpool24.com:8338
role:backup
#CHANGE THIS
#http://www.btcpool24.com/register.php
user = 'x.1'
pass = 'x'
---------------------------
http://forum.bitcoin.org/index.php?topic=31633.msg397847#msg397847


anty
Jr. Member
*
Offline Offline

Activity: 40



View Profile WWW
July 25, 2011, 07:41:30 PM
 #1047

@hawks5999 nice... my imagination just got loose

just managed to conf. bitcoinmonkey (thanks phorensic)

Code:
[btcmonkey]
name: bitcoinmonkey.com
mine_address: bitcoinmonkey.com:8332
api_address: https://bitcoinmonkey.com/json/api.php
api_method:json
api_key:shares_this_round
role: info
#CHANGE THIS
#http://bitcoinmonkey.com/
user: x
pass: x

(i get an api error though, shit)

You get an error because there's html in the json response (view source).
Here's a working one:
Code:
[btcmonkey]
name: bitcoinmonkey.com
mine_address: bitcoinmonkey.com:8332
api_address: https://bitcoinmonkey.com/json/api.php
api_method:re
api_key:"shares_this_round":"(\d+)
role: mine
#CHANGE THIS
#http://bitcoinmonkey.com/
user: username
pass: password

murfshake
Member
**
Offline Offline

Activity: 83


View Profile
July 25, 2011, 07:41:46 PM
 #1048

user = 'x.1'
pass = 'x'
---------------------------
http://forum.bitcoin.org/index.php?topic=31633.msg397847#msg397847




Why is your formatting with the "=" and a space " " where as every other one is with a

"user:x"
"pass:x"

Huh??

Also btcguild has the wrong formatting it looks like.
paraipan
Legendary
*
Offline Offline

Activity: 924


Firstbits: 1pirata


View Profile WWW
July 25, 2011, 07:56:55 PM
 #1049

thanks anty, working now

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

Activity: 630



View Profile
July 25, 2011, 08:02:06 PM
 #1050

@hawks5999 nice... my imagination just got loose

just managed to conf. bitcoinmonkey (thanks phorensic)

Code:
[btcmonkey]
name: bitcoinmonkey.com
mine_address: bitcoinmonkey.com:8332
api_address: https://bitcoinmonkey.com/json/api.php
api_method:json
api_key:shares_this_round
role: info
#CHANGE THIS
#http://bitcoinmonkey.com/
user: x
pass: x

(i get an api error though, shit)

You get an error because there's html in the json response (view source).
Here's a working one:
Code:
[btcmonkey]
name: bitcoinmonkey.com
mine_address: bitcoinmonkey.com:8332
api_address: https://bitcoinmonkey.com/json/api.php
api_method:re
api_key:"shares_this_round":"(\d+)
role: mine
#CHANGE THIS
#http://bitcoinmonkey.com/
user: username
pass: password
I tried to include no HTML besides a <pre> tag that other pools are using in their JSON output.  What is the most compatible way to output my JSON?
paraipan
Legendary
*
Offline Offline

Activity: 924


Firstbits: 1pirata


View Profile WWW
July 25, 2011, 08:10:27 PM
 #1051

........
it's working fine that way, you should consider memcaching and updating every minute if you want to have efficient stats and low cpu on server Wink

edit: now working with json, count with us in the next run

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

Activity: 40



View Profile WWW
July 25, 2011, 08:16:00 PM
 #1052

I tried to include no HTML besides a <pre> tag that other pools are using in their JSON output.  What is the most compatible way to output my JSON?
No HTML at all. Just the JSON text.

Edit: now it's valid JSON, here's the correct code for bitHopper:
Code:
[btcmonkey]
name: bitcoinmonkey.com
mine_address: bitcoinmonkey.com:8332
api_address: https://bitcoinmonkey.com/json/api.php
api_method:json
api_key:shares_this_round
role: mine
#CHANGE THIS
#http://bitcoinmonkey.com/
user: username
pass: password
Thanks phorensic!

phorensic
Hero Member
*****
Offline Offline

Activity: 630



View Profile
July 25, 2011, 08:24:24 PM
 #1053

Alright, I removed the <pre> tag.
macboy80
Member
**
Offline Offline

Activity: 102


View Profile
July 25, 2011, 08:39:20 PM
 #1054

Alright, I removed the <pre> tag.

Phorensic. You are a scholar and a gentleman. Thanks for your cooperation.
Moussekateer
Member
**
Offline Offline

Activity: 66


View Profile
July 25, 2011, 08:50:23 PM
 #1055

Can someone explain the behaviour of this proxy please. Why is mine currently mining on my backup pool when there are no errors on any of the 4 pools that are configured? Is it because they have passed a certain number of total shares?

17BbBd3HqbSXPBTUipRyaAMaQ2NLnyoNPf
phorensic
Hero Member
*****
Offline Offline

Activity: 630



View Profile
July 25, 2011, 08:58:47 PM
 #1056

Alright, I removed the <pre> tag.

Phorensic. You are a scholar and a gentleman. Thanks for your cooperation.
Thanks.  This was actually a good little stress test for my code and database.  Identified a big bottleneck in two queries that I fixed today.  Just about done unbanning IP's that are still using the old HTML method on our site.  Use the new config if you are reading this!
anty
Jr. Member
*
Offline Offline

Activity: 40



View Profile WWW
July 25, 2011, 08:59:57 PM
 #1057

Can someone explain the behaviour of this proxy please. Why is mine currently mining on my backup pool when there are no errors on any of the 4 pools that are configured? Is it because they have passed a certain number of total shares?
Yes, at the current difficulty bitHopper mines until a sharecount of 1690906*0.4 = 676362.4 is reached and then switches to a backup pool.

paraipan
Legendary
*
Offline Offline

Activity: 924


Firstbits: 1pirata


View Profile WWW
July 25, 2011, 09:00:39 PM
 #1058

yep that should be normal behavior, while waiting to see the script hopping I would be reading some pages of this thread to understand how it works, increase efficiency Wink

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

Activity: 66


View Profile
July 25, 2011, 09:01:33 PM
 #1059

Can someone explain the behaviour of this proxy please. Why is mine currently mining on my backup pool when there are no errors on any of the 4 pools that are configured? Is it because they have passed a certain number of total shares?
Yes, at the current difficulty bitHopper mines until a sharecount of 1690906*0.4 = 676362.4 is reached and then switches to a backup pool.

Ah gotcha. Thanks very much.

17BbBd3HqbSXPBTUipRyaAMaQ2NLnyoNPf
ewibit
Legendary
*
Offline Offline

Activity: 1745


View Profile
July 25, 2011, 09:04:10 PM
 #1060

Why is your formatting with the "=" and a space " " where as every other one is with a

"user:x"
"pass:x"

Huh??
sorry was a mistake...
Pages: « 1 ... 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 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 ... 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!