Application providing a proxy between a Stratum mining server and a Stratum mining client.
Stratum specification: http://mining.bitcoin.cz/stratum-mining
Current version: alpha 0.1
License: GNU Affero General Public License version 3 (see COPYING)
- Remove all GetWork related code.
- Heavy redesign of the main class code (simple and easier to understand now).
- Define a backup pool which is used if there is some problem with the current pool.
- Control thread: new interface to control the proxy via TCP socket and JSON (i.e origin pool can be changed without restarting proxy).
- Watcher thread: informs about current details of the proxy every 10 seconds
- Share notify snippets support added (allows execute custom python code when a share is found)
- Support for new set extranonce stratum method (partial)
- Some other small features
Installation on Linux using Git
This is advanced option for experienced users, but give you the easiest way for updating the proxy.
- git clone git://github.com/p4u/stratum-proxy-ng.git
- cd stratum-mining-proxy
- sudo apt-get install python-dev python-zmq
- sudo python distribute_setup.py # This will upgrade setuptools package
- sudo python setup.py develop # This will install required dependencies (namely Twisted and Stratum libraries), but don't install the package into the system.
- You can start the proxy by typing "python2.7 stproxy-ng.py" in the terminal window.
python2.7 stproxy-ng.py -o originpool.com -p 3333 -sp 3334 -sh 0.0.0.0 -xp 10001 -cu myUser -cp myPass --sharenotify sharenotify_snippets/log.py --control-listen 127.0.0.1 -v
- Now you can use the control.py scrypt to control the proxy
python2.7 control.py 127.0.0.1:10001 setbackup host=poolbackup.com port=3333 user=newUser pass=newPass
python2.7 control.py 127.0.0.1:10001 setpool host=newpool.com port=3333 user=newUser pass=newPass
- If you want to update the proxy, type "git pull" in the package directory.
- To install the proxy in your OS type "sudo python setup.py install"
This proxy is based on the work done by Slush (slush(at)satoshilabs.com).
New generation version created and currently maintained by p4u (p4u(at)dabax.net)