Download and compile [Monero](https://github.com/monero-project/bitmonero) daemon.
Now clone stratum repo and compile it:
@ -29,15 +31,25 @@ Now clone stratum repo and compile it:
@@ -29,15 +31,25 @@ Now clone stratum repo and compile it:
cmake .
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 .
make
Build stratum:
go build -o pool main.go
#### Linux
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:
More info on *GOPATH* you can find in a [wiki](https://github.com/golang/go/wiki/GOPATH).
### 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.