Download and compile [Monero](https://github.com/monero-project/bitmonero) daemon.
Download and compile [Monero](https://github.com/monero-project/bitmonero) daemon.
Now clone stratum repo and compile it:
Now clone stratum repo and compile it:
@ -29,15 +31,25 @@ Now clone stratum repo and compile it:
cmake .
cmake .
make
make
Notice that for share validation stratum requires bitmonero source tree where .a libs already compiled. By default stratum will use <code>../bitmonero</code> directory. You can override this behaviour by passing <code>MONERO_DIR</code> env variable:
Notice that for share validation stratum requires bitmonero source tree where .a libs already compiled. By default stratum will use <code>../bitmonero</code> directory. You can override this behavior by passing <code>MONERO_DIR</code> env variable:
MONERO_DIR=/path/to/bitmonero cmake .
MONERO_DIR=/path/to/bitmonero cmake .
make
make
Build stratum:
go build -o pool main.go
#### Linux
#### Linux
I would recommend you to use Ubuntu 16.04 LTS.
I would recommend you to use Ubuntu 16.04 LTS.
Install required packages:
sudo apt-get install golang
export GOPATH=~/go
go get github.com/yvasiyarov/gorelic
In order to successfully link with bitmonero libs, recompile bitmonero with:
In order to successfully link with bitmonero libs, recompile bitmonero with:
CXXFLAGS="-fPIC" CFLAGS="-fPIC" make release
CXXFLAGS="-fPIC" CFLAGS="-fPIC" make release
@ -49,14 +61,12 @@ Build CGO extensions:
Build stratum:
Build stratum:
GOPATH=/path/to/go go build -o pool main.go
go build -o pool main.go
Run:
#### Running Stratum
./pool config.json
./pool config.json
More info on *GOPATH* you can find in a [wiki](https://github.com/golang/go/wiki/GOPATH).
### Configuration
### Configuration
Configuration is self-describing, just copy *config.example.json* to *config.json* and run stratum with path to config file as 1st argument. There is default XMR address of monero core team in config example and open monero rpc node from [moneroclub.com](https://www.moneroclub.com/node). Sure, you must run your own full node.
Configuration is self-describing, just copy *config.example.json* to *config.json* and run stratum with path to config file as 1st argument. There is default XMR address of monero core team in config example and open monero rpc node from [moneroclub.com](https://www.moneroclub.com/node). Sure, you must run your own full node.