2015-07-05 14:49:07 +05:00
# go-cryptonote-pool
2016-12-07 17:33:42 +05:00
High performance CryptoNote mining stratum with Web-interface written in Golang.
2015-07-05 14:49:07 +05:00
**Stratum feature list:**
2016-12-07 17:33:42 +05:00
* Be your own pool
* Rigs availability monitoring
* Keep track of accepts, rejects, blocks stats
* Easy detection of sick rigs
* Daemon failover list
2016-08-07 09:05:02 +05:00
* Concurrent shares processing
2016-12-07 17:33:42 +05:00
* Beautiful Web-interface
2015-07-05 14:49:07 +05:00
2016-12-06 14:37:21 +05:00
## Installation
2015-07-05 14:49:07 +05:00
Dependencies:
2016-08-07 07:17:41 +05:00
* go-1.6
2016-12-07 17:33:42 +05:00
* Everything required to build Monero
2016-12-06 14:37:21 +05:00
* Monero >= **v0.10.0**
2015-07-05 14:49:07 +05:00
2016-12-06 14:37:21 +05:00
### Linux
2016-08-07 11:25:06 +05:00
2016-12-06 14:37:21 +05:00
Use Ubuntu 16.04 LTS.
2015-07-05 14:49:07 +05:00
2016-12-06 14:37:21 +05:00
Compile Monero source (with libraries option):
2015-07-05 14:49:07 +05:00
2016-12-06 14:54:33 +05:00
cmake -DBUILD_SHARED_LIBS=1 .
make
2015-07-05 14:49:07 +05:00
2016-12-06 14:37:21 +05:00
Install Golang and packages:
2015-07-05 14:49:07 +05:00
2016-12-06 14:37:21 +05:00
sudo apt-get install golang
export GOPATH=~/go
go get github.com/yvasiyarov/gorelic
2015-07-05 14:49:07 +05:00
2016-12-06 14:37:21 +05:00
Build CGO extensions:
2015-07-05 14:49:07 +05:00
2016-12-06 14:37:21 +05:00
MONERO_DIR=/opt/src/monero cmake .
2015-07-05 14:49:07 +05:00
make
2016-08-07 11:25:06 +05:00
Build stratum:
go build -o pool main.go
2016-12-06 14:37:21 +05:00
### Mac OS X
2015-07-05 14:49:07 +05:00
2016-12-06 14:37:21 +05:00
Install Golang and packages packages:
2015-07-05 14:49:07 +05:00
2016-12-06 14:37:21 +05:00
brew update & & brew install go
2016-08-07 11:25:06 +05:00
export GOPATH=~/go
go get github.com/yvasiyarov/gorelic
2016-12-06 14:37:21 +05:00
Compile Monero source:
2015-07-05 14:49:07 +05:00
2016-12-06 00:21:58 +05:00
cmake .
2016-12-06 14:37:21 +05:00
make
2015-07-05 14:49:07 +05:00
2016-12-06 14:37:21 +05:00
Now clone stratum repo and compile it:
2015-07-05 14:49:07 +05:00
2016-12-05 19:10:26 +05:00
MONERO_DIR=/opt/src/monero cmake .
2015-07-05 14:49:07 +05:00
make
2016-08-07 07:30:11 +05:00
Build stratum:
2015-07-05 14:49:07 +05:00
2016-08-07 11:25:06 +05:00
go build -o pool main.go
2015-07-05 14:49:07 +05:00
2016-12-06 14:37:21 +05:00
### Running Stratum
2016-08-07 09:05:02 +05:00
./pool config.json
2016-12-07 16:56:15 +05:00
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
2016-12-06 14:37:21 +05:00
## Configuration
2015-07-05 14:49:07 +05:00
2016-12-06 00:21:58 +05:00
Configuration is self-describing, just copy *config.example.json* to *config.json* and run stratum with path to config file as 1st argument.
2016-08-07 09:05:02 +05:00
```javascript
{
2016-12-07 17:33:42 +05:00
// 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"
2016-08-07 09:05:02 +05:00
}
2016-12-07 17:33:42 +05:00
]
2016-08-07 09:05:02 +05:00
}
```
2015-07-05 14:49:07 +05:00
### Private Pool Guidelines
For personal private pool you can use [DigitalOcean ](https://www.digitalocean.com/?refcode=2a6767e6285f ) droplet. With recent blockchain-db merged into Monero it's ok to run it even on 5 USD plan. You will receive 10 USD free credit there.
### Donations
* **BTC**: [16bBz4wZPh7kV53nFMf8LmtJHE2rHsADB2 ](https://blockchain.info/address/16bBz4wZPh7kV53nFMf8LmtJHE2rHsADB2 )
* **XMR**: 4Aag5kkRHmCFHM5aRUtfB2RF3c5NDmk5CVbGdg6fefszEhhFdXhnjiTCr81YxQ9bsi73CSHT3ZN3p82qyakHwZ2GHYqeaUr
### License
Released under the GNU General Public License v2.
http://www.gnu.org/licenses/gpl-2.0.html