Browse Source

Update README.md

pool
Sammy Libre 8 years ago
parent
commit
b187631080
  1. 24
      README.md

24
README.md

@ -15,12 +15,14 @@ Dependencies:
* go-1.6 * go-1.6
* Everything required to build bitmonero * Everything required to build bitmonero
#### Mac OS X
Install required packages: Install required packages:
brew update && brew install go
export GOPATH=~/go
go get github.com/yvasiyarov/gorelic go get github.com/yvasiyarov/gorelic
#### Mac OS X
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.

Loading…
Cancel
Save