Kevacoin stratum server for solo-mining
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

168 lines
3.5 KiB

8 years ago
# monero-stratum
10 years ago
8 years ago
High performance CryptoNote mining stratum with Web-interface written in Golang.
10 years ago
**Stratum feature list:**
8 years ago
* Be your own pool
* Rigs availability monitoring
* Keep track of accepts, rejects, blocks stats
* Easy detection of sick rigs
* Daemon failover list
9 years ago
* Concurrent shares processing
8 years ago
* Beautiful Web-interface
10 years ago
8 years ago
![](https://cdn.pbrd.co/images/jRU3qJj83.png)
8 years ago
## Installation
10 years ago
Dependencies:
9 years ago
* go-1.6
8 years ago
* Everything required to build Monero
8 years ago
* Monero >= **v0.10.3**
10 years ago
### Linux
9 years ago
Use Ubuntu 16.04 LTS.
10 years ago
8 years ago
Compile Monero source (with shared libraries option):
10 years ago
8 years ago
git clone https://github.com/monero-project/monero.git
cd monero
8 years ago
cmake -DBUILD_SHARED_LIBS=1 .
make
10 years ago
8 years ago
Install Golang and required packages:
10 years ago
sudo apt-get install golang
export GOPATH=~/go
8 years ago
go get github.com/goji/httpauth
go get github.com/yvasiyarov/gorelic
8 years ago
go get github.com/gorilla/mux
10 years ago
8 years ago
Clone stratum:
10 years ago
8 years ago
git clone https://github.com/sammy007/monero-stratum.git
cd monero-stratum
10 years ago
9 years ago
Build stratum:
8 years ago
MONERO_DIR=/path/to/monero cmake .
make
9 years ago
go build -o pool main.go
8 years ago
`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 .`.
10 years ago
8 years ago
### Mac OS X
9 years ago
Compile Monero source:
10 years ago
8 years ago
git clone https://github.com/monero-project/monero.git
cd monero
8 years ago
cmake .
make
10 years ago
8 years ago
Install Golang and required packages:
10 years ago
8 years ago
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
10 years ago
9 years ago
Build stratum:
10 years ago
8 years ago
MONERO_DIR=/path/to/monero cmake .
make
9 years ago
go build -o pool main.go
10 years ago
### Running Stratum
9 years ago
./pool config.json
8 years ago
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
10 years ago
8 years ago
Configuration is self-describing, just copy *config.example.json* to *config.json* and run stratum with path to config file as 1st argument.
9 years ago
```javascript
{
8 years ago
// 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"
9 years ago
}
8 years ago
]
9 years ago
}
```
10 years ago
### Donations
8 years ago
Donations are welcome.
**XMR**: `4Aag5kkRHmCFHM5aRUtfB2RF3c5NDmk5CVbGdg6fefszEhhFdXhnjiTCr81YxQ9bsi73CSHT3ZN3p82qyakHwZ2GHYqeaUr`
10 years ago
### License
Released under the GNU General Public License v2.
http://www.gnu.org/licenses/gpl-2.0.html