In order to operate on bosminer, stratum extensions need to be enabled (--enable-stratum-extensions
).
This works on any system with Docker (Linux/Mac/Windows) and doesn't need anything other than Git and Docker.
- Download and extract this directory
cd stratum-mining-proxy
docker build -t stratum-mining-proxy .
- Run interactively:
docker run -it --rm -p 3333:3333 stratum-mining-proxy -o us-east.stratum.slushpool.com -p 3333 -sh 0.0.0.0 -sp 3333
- Run interactively:
docker run -it --rm -p 3333:3333 stratum-mining-proxy -o eu.stratum.slushpool.com -p 3333 -sh 0.0.0.0 -sp 3333
- Run as a service:
docker run -d --restart unless-stopped --rm -p 3333:3333 stratum-mining-proxy -o us-east.stratum.slushpool.com -p 3333 -sh 0.0.0.0 -sp 3333
This is advanced option for experienced users, but give you the easiest way for updating the proxy.
- install python2 and python2-virtualenv for your distribution
- Download and extract this directory
- Download stratum dependency
git clone git://github.com/braiins/stratum.git
cd stratum-mining-proxy
virtualenv .env --python=/usr/bin/python2.7
. .env/bin/activate
python -m pip install -e ../stratum
python mining_proxy.py -o us-east.stratum.slushpool.com -sh 0.0.0.0 -sp 3333 --enable-stratum-extensions
There seem to be problems with building pyinstaller with default compiler GCC on RaspberryPi
- install python2 and python2-virtualenv for your distribution
- Download and extract this directory
git clone git://github.com/braiins/stratum.git
cd stratum-mining-proxy
virtualenv .env --python=/usr/bin/python2.7
. .env/bin/activate
- Manually build PyInstaller:
sudo apt-get install clang
git clone https://github.com/pyinstaller/pyinstaller.git
cd pyinstaller/bootloader/
python ./waf all --target-arch=32bit --clang
sudo apt-get remove clang # remove the clang, it is not needed anymore
cd ..
python setup.py install
cd ..
python -m pip install -e ../stratum
mkdir -p .env/local/include/python2.7
ln -s /usr/include/python2.7/pyconfig.h .env/local/include/python2.7/pyconfig.h
pyinstaller -F mining_proxy.py --name stratum-mining-proxy
- Resulting binary is in
dist/stratum-mining-proxy
git clone https://aur.archlinux.org/stratum-mining-proxy.git
cd stratum-mining-proxy
makepkg -sri
- run
stratum-mining-proxy -o us-east.stratum.slushpool.com -p 3333 -sh 0.0.0.0 -sp 3333 --enable-stratum-extensions