Sammy Libre
95270d488c
|
7 years ago | |
---|---|---|
cnutil | 7 years ago | |
go-pool | 7 years ago | |
hashing | 7 years ago | |
www | 8 years ago | |
.gitignore | 8 years ago | |
CMakeLists.txt | 8 years ago | |
LICENSE | 10 years ago | |
README.md | 7 years ago | |
config.example.json | 8 years ago | |
main.go | 8 years ago |
README.md
monero-stratum
High performance CryptoNote mining stratum with Web-interface written in Golang.
Stratum feature list:
- Be your own pool
- Rigs availability monitoring
- Keep track of accepts, rejects, blocks stats
- Easy detection of sick rigs
- Daemon failover list
- Concurrent shares processing
- Beautiful Web-interface
Installation
Dependencies:
- go >= 1.6
- Everything required to build Monero
- Monero >= v0.11.0.0
Linux
Use Ubuntu 16.04 LTS.
Compile Monero source (with shared libraries option):
apt-get install git cmake build-essential libssl-dev pkg-config libboost-all-dev
git clone https://github.com/monero-project/monero.git
cd monero
git checkout tags/v0.11.0.0 -b v0.11.0.0
cmake -DBUILD_SHARED_LIBS=1 .
make
Install Golang and required packages:
sudo apt-get install golang
export GOPATH=~/go
go get github.com/goji/httpauth
go get github.com/yvasiyarov/gorelic
go get github.com/gorilla/mux
Clone stratum:
git clone https://github.com/sammy007/monero-stratum.git
cd monero-stratum
Build stratum:
MONERO_DIR=/path/to/monero cmake .
make
go build -o pool main.go
MONERO_DIR=/path/to/monero
is optional, not needed if both monero
and monero-stratum
is in the same directory like /opt/src/
. By default make will search for monero libraries in ../monero
. You can just run cmake .
.
Mac OS X
Compile Monero source:
git clone https://github.com/monero-project/monero.git
cd monero
git checkout tags/v0.10.3.1 -b v0.10.3.1
cmake .
make
Install Golang and required packages:
brew update && brew install go
export GOPATH=~/go
go get github.com/goji/httpauth
go get github.com/yvasiyarov/gorelic
go get github.com/gorilla/mux
Clone stratum:
git clone https://github.com/sammy007/monero-stratum.git
cd monero-stratum
Build stratum:
MONERO_DIR=/path/to/monero cmake .
make
go build -o pool main.go
Running Stratum
./pool config.json
If you need to bind to privileged ports and don't want to run from root
:
sudo apt-get install libcap2-bin
sudo setcap 'cap_net_bind_service=+ep' pool
Configuration
Configuration is self-describing, just copy config.example.json to config.json and run stratum with path to config file as 1st argument.
{
// Address for block rewards
"address": "46BeWrHpwXmHDpDEUmZBWZfoQpdc6HaERCNmx1pEYL2rAcuwufPN9rXHHtyUA4QVy66qeFQkn6sfK8aHYjA3jk3o1Bv16em",
// Don't validate address
"bypassAddressValidation": true,
// Don't validate shares
"bypassShareValidation": true,
"threads": 2,
"estimationWindow": "15m",
"luckWindow": "24h",
"largeLuckWindow": "72h",
// Interval to poll daemon for new jobs
"blockRefreshInterval": "1s",
"stratum": {
// Socket timeout
"timeout": "15m",
"listen": [
{
"host": "0.0.0.0",
"port": 1111,
"diff": 5000,
"maxConn": 32768
},
{
"host": "0.0.0.0",
"port": 3333,
"diff": 10000,
"maxConn": 32768
}
]
},
"frontend": {
"enabled": true,
"listen": "0.0.0.0:8082",
"login": "admin",
"password": "",
"hideIP": false
},
"upstreamCheckInterval": "5s",
"upstream": [
{
"name": "Main",
"host": "127.0.0.1",
"port": 18081,
"timeout": "10s"
}
]
}
Donations
Donations are welcome.
XMR: 4Aag5kkRHmCFHM5aRUtfB2RF3c5NDmk5CVbGdg6fefszEhhFdXhnjiTCr81YxQ9bsi73CSHT3ZN3p82qyakHwZ2GHYqeaUr
License
Released under the GNU General Public License v2.