Bitcoin Forum
November 12, 2024, 12:34:05 AM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   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 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 ... 205 »
  Print  
Author Topic: bitHopper: Python Pool Hopper Proxy  (Read 355787 times)
ahitman
Sr. Member
****
Offline Offline

Activity: 302
Merit: 250


View Profile
July 23, 2011, 07:01:10 PM
 #861

I like the idea of having something like this in the pool.cfg file, but only because I dont know what a json_ec is.
Code:
[polmine]
name: polmine.pl
mine_address: polmine.pl:8347
api_address:https://polmine.pl/?action=statistics
role:mine 
api_method:re
api_shares: int(re.search(r"stkich:</th><td>[ 0-9]*</td>", response).group(0)[16:-5].replace(' ',''))
#CHANGE THIS
#https://polmine.pl
user: xxx
pass: xxx

How do I add methods?

edit: also above method would require the api_index
bb
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile
July 23, 2011, 07:11:10 PM
 #862

2)bb nothing is happening?
You need to mv pools.cfg.default to pools.cfg
I should probably have a error output telling people that.

Unfortunately it's not that trivial. :-)

Code:
$ ls /opt/bitHopper-4 | grep pool
pool.cfg
pool.cfg.default
pool.py
pool.pyc
c00w (OP)
Full Member
***
Offline Offline

Activity: 196
Merit: 100


View Profile
July 23, 2011, 07:12:30 PM
 #863

Do you have mtred in pool.cfg? I'm going to change it but the current start server is mtred.

EDIT: Actually its the last pool parsed in the latest version. Update?

1HEmzeuVEKxBQkEenysV1yM8oAddQ4o2TX
c00w (OP)
Full Member
***
Offline Offline

Activity: 196
Merit: 100


View Profile
July 23, 2011, 07:18:02 PM
 #864

ahitman:

Code:
[polmine]
name: polmine.pl
mine_address: polmine.pl:8347
api_address:https://polmine.pl/?action=statistics
role:mine  
api_method:re
api_key: stkich:</th><td>[ 0-9]*</td>
api_index:16,-5
api_strip:' '
#CHANGE THIS
#https://polmine.pl
user: xxx
pass: xxx

Oh and I added it to pool.cfg.default

1HEmzeuVEKxBQkEenysV1yM8oAddQ4o2TX
ahitman
Sr. Member
****
Offline Offline

Activity: 302
Merit: 250


View Profile
July 23, 2011, 07:21:12 PM
 #865

Your awsome c00w, I'm sending some coins your way.

Also nofeemining is going to a score based system (where every share is equal to 50BTC/difficulty) not sure what thats called, but its happening soon.
c00w (OP)
Full Member
***
Offline Offline

Activity: 196
Merit: 100


View Profile
July 23, 2011, 07:24:25 PM
 #866

When it happens, tell us and we'll switch it to a backup server.

1HEmzeuVEKxBQkEenysV1yM8oAddQ4o2TX
ahitman
Sr. Member
****
Offline Offline

Activity: 302
Merit: 250


View Profile
July 23, 2011, 07:48:26 PM
 #867

anyone know why this would happen? Im guessing this is propably phoenix related, not bithopper? This is after running more than 30hrs without problems:
Code:
[23/07/2011 19:39:06] Result: 8ba20c64 accepted              
[23/07/2011 19:39:20] Result: 7ddd8caa accepted             
[23/07/2011 19:39:23] Result: 18558e4d accepted             
[393.75 Mhash/sec] [9000 Accepted] [860 Rejected] [RPC (+LP)]./miner2.sh: line 3: 15173 Killed                  ./phoenix.py -u http://x:x@localhost:8336/ DEVICE=1 -k phatk VECTORS BFI_INT AGGRESSION=11 FASTLOOP=false WORKSIZE=256 -a 50
root@linuxcoin:/home/user#
running Phoenix 1.50. Thanks
c00w (OP)
Full Member
***
Offline Offline

Activity: 196
Merit: 100


View Profile
July 23, 2011, 07:56:08 PM
 #868

Are you using autominer? Otherwise. Hmmm. It doesn't appear for me. i'll look through logs though.

1HEmzeuVEKxBQkEenysV1yM8oAddQ4o2TX
kbsbtc
Newbie
*
Offline Offline

Activity: 53
Merit: 0


View Profile
July 23, 2011, 08:07:23 PM
 #869

c00w, how long is the database setup step supposed to take? I think the script hangs on that portion...
c00w (OP)
Full Member
***
Offline Offline

Activity: 196
Merit: 100


View Profile
July 23, 2011, 08:09:02 PM
 #870

Database setup should be quick. I will regenerate mine and see how long it takes.

EDIT: Mine took about 3-4 seconds. I could probably make it faster though.

1HEmzeuVEKxBQkEenysV1yM8oAddQ4o2TX
kbsbtc
Newbie
*
Offline Offline

Activity: 53
Merit: 0


View Profile
July 23, 2011, 08:12:06 PM
 #871

Database setup should be quick. I will regenerate mine and see how long it takes.

EDIT: Mine took about 3-4 seconds. I could probably make it faster though.

Mines been stuck for 5 minutes. Restarting script has no effect. I think I should hardcode the path in. That was tlmy problem last time. Any idea which script what line I should add it in?
bb
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile
July 23, 2011, 08:15:27 PM
 #872

Do you have mtred in pool.cfg? I'm going to change it but the current start server is mtred.

EDIT: Actually its the last pool parsed in the latest version. Update?

I'm pretty sure this is the same problem as there was with the index.html:

Code:
$ /opt/bitHopper-4/bitHopper.py
[22:13:20] Updating Difficulty
[22:13:21] 1690906.2047244
[22:13:21] pool.cfg not found. You may need to move it from pool.cfg.default

$ ls /opt/bitHopper-4/pool.cfg
/opt/bitHopper-4/pool.cfg

:-)

Edit: Is everybody else running bitHopper from inside it's directory??
enmaku
Hero Member
*****
Offline Offline

Activity: 742
Merit: 500


View Profile
July 23, 2011, 08:15:51 PM
 #873

Hah, I just fired up namecoind for the first time in weeks since ryouiki added bitparking & namebit support and realized that shortly after I'd given up on solo mining namecoins the last go-round I'd generated a block and not realized it. 50 NMC ~= 1.44 BTC that I didn't know I had. I love finding money  Grin

Thanks ryouiki!
c00w (OP)
Full Member
***
Offline Offline

Activity: 196
Merit: 100


View Profile
July 23, 2011, 08:23:31 PM
 #874

1) bb? yeah. thats the issue. I'll fix it.
EDIT: Fixed.

2) Database hardcoding?
its in database.py:37.

I would try deleting stats.db and stats.db-journal before hardcoding. Your database may have become corrupt.

1HEmzeuVEKxBQkEenysV1yM8oAddQ4o2TX
paraipan
In memoriam
Legendary
*
Offline Offline

Activity: 924
Merit: 1004


Firstbits: 1pirata


View Profile WWW
July 23, 2011, 08:42:18 PM
 #875

ahitman:

Code:
[polmine]
name: polmine.pl
mine_address: polmine.pl:8347
api_address:https://polmine.pl/?action=statistics
role:mine 
api_method:re
api_key: stkich:</th><td>[ 0-9]*</td>
api_index:16,-5
api_strip:' '
#CHANGE THIS
#https://polmine.pl
user: xxx
pass: xxx

Oh and I added it to pool.cfg.default

one word, thanks

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

Activity: 910
Merit: 1000


Quality Printing Services by Federal Reserve Bank


View Profile
July 23, 2011, 08:55:22 PM
 #876

I get: 
Code:
Error in pool api for nofeemining
Any ideas why?


While reading what I wrote, use the most friendliest and relaxing voice in your head.
BTW, Things in BTC bubble universes are getting ugly....
btcminer
Newbie
*
Offline Offline

Activity: 32
Merit: 0


View Profile
July 23, 2011, 08:56:39 PM
 #877

I'm getting a lot of disconnects:
Code:
caught, Final response/writing
Request.finish called on a request after its connection was lost; use Request.notifyFinish to keep track of this.
caught, Final response/writing
Request.finish called on a request after its connection was lost; use Request.notifyFinish to keep track of this.
caught, Final response/writing
Request.finish called on a request after its connection was lost; use Request.notifyFinish to keep track of this.
caught, Final response/writing
Request.finish called on a request after its connection was lost; use Request.notifyFinish to keep track of this.

And it hops servers back and forth, anyone else getting this?
c00w (OP)
Full Member
***
Offline Offline

Activity: 196
Merit: 100


View Profile
July 23, 2011, 09:00:39 PM
 #878

EskimoBob: Um. Hmmm. run with --debug to show the errors. And then paste that on github.com/c00w/bitHopper/issues. Or here

btcminer:
Those actually aren't disconnects. Its screwy behavior on the client side. It effects nothing but outputs wierd error messages. I should probably make all of that hidden.

1HEmzeuVEKxBQkEenysV1yM8oAddQ4o2TX
paraipan
In memoriam
Legendary
*
Offline Offline

Activity: 924
Merit: 1004


Firstbits: 1pirata


View Profile WWW
July 23, 2011, 09:03:29 PM
 #879

just managed to make this thanks to c00w

Code:

[nmc]
name: bitparking.com
mine_address: bitparking.com:9098
api_address: http://bitparking.com/pool
api_method:re
api_key:block</td><td>[ 0-9]+</td>
api_index:14,-5
api_strip:' '
role:mine
#CHANGE THIS
#http://bitparking.com/
user: Nxxx
pass: x

after only 5 minutes I realized namecoins have a different difficulty...

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

Activity: 53
Merit: 0


View Profile
July 23, 2011, 09:13:38 PM
 #880

looks like triple is still not working with latest revision from c00w. i get

Code:
Error in pool api for triple
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 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 ... 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!