-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated version of python mining script using 44 byte protocol, and allowing long polling. #2
base: master
Are you sure you want to change the base?
Conversation
Fixes buggy json parsing so that it works with a stratum PROXY server. NB its still getwork, so won't connect directly to stratum, hence need to use a proxy which can be run on localhost. Required because getwork will soon be unsupported by mining pools.
Thanks for this, it looks good. I'll put it up as a separate script miner_lp.py once I've tested it out (I don't have time right now). Cheers. |
I've pushed your changes up as miner_lp.py as I haven't really got the time right now to look at it myself. That way any followers can pick it up and run with it themselves (I'm just a newbie here at github so I don't really know how these pull requests work). Hope that's OK with you. |
There is no rush, I am happy if you pull it now, or later once tested. I'm also new to github. I have also updated the icarus driver in mpbm to 'kramble' driver that works fine with the 44 byte protocol. |
Its probably not worth putting too much effort into my 44 byte protocol as its non-standard. It came about when I was porting fpgaminer to the DE0-Nano which I wanted to drive from the gpio serial port on my raspberry pi (I found USB was a bit unreliable, but later discovered this was just because I had a loose cable). Since I was using a slow opto-isolator (hence 4800 baud), I decided to drop the 20 redundant bytes from the getwork packet. In hindsight this was the wrong decision and I should have kept teknohog's original 64 byte protocol as this became the icarus standard. Anyway this is all becoming rather moot now that difficulty is skyrocketing, its almost at the point where I'm going to stop mining (I'm only running 60MHash/sec on fpga, which is earning almost nothing). |
This version of the mining script and slightly modified service proxy allows longpolling. The long polling works for p2pool, but does not work for submitting work at this time. Should work fine against slush etc.