Skip to content

LeChuckDE/decred-proxy

 
 

Repository files navigation

decred-proxy

Decred mining proxy with web-interface.

Proxy feature list:

  • Rigs availability monitoring
  • Keep track of accepts, rejects, blocks stats
  • Easy detection of sick rigs
  • Daemon failover list

Building on Linux

Dependencies:

  • go >= 1.4
  • geth

Export GOPATH:

export GOPATH=$HOME/go

Install required packages:

go get github.com/decred/dcrd/blockchain
go get github.com/decred/dcrd/chaincfg/chainhash
go get github.com/goji/httpauth
go get github.com/gorilla/mux
go get github.com/yvasiyarov/gorelic

Compile:

go build -o decred-proxy main.go

Building on Windows

Install required packages (look at Linux install guide above). Then compile:

go build -o decred-proxy.exe main.go

Building on Mac OS X

If you didn't install Brew, do it. Then install Golang:

brew install go

And follow Linux installation instructions because they are the same for OS X.

Configuration

Configuration is self-describing, just copy config.example.json to config.json and specify endpoint URL and upstream URLs.

Example upstream section

"upstream": [
  {
    "pool": true,
    "name": "Suprnova",
    "url": "http://dcr.suprnova.cc:9110",
    "username": "workername",
    "password": "x",
    "timeout": "10s"
  },
  {
    "name": "backup-decred",
    "url": "http://127.0.0.1:9109",
    "username": "yourusername",
    "password": "yoursecurepassword",
    "timeout": "10s"
  }
],

In this example we specified Suprnova's Decred Pool mining pool as main mining target and a local geth node as backup for solo.

Running

./decred-proxy config.json

Mining

cgminer --blake256 -o http://x.x.x.x:9109 -u amd -p 4 --other-parameters....
ccminer -a decred -o https://x.x.x.x:9109 -u nvidia -p 4 --other-parameters....

Pools that work with this proxy

Pool owners, apply for listing here. PM me for implementation details.

TODO

Currently it's solo-only solution.

  • Report block numbers
  • Report luck per rig
  • Maybe add more stats
  • Maybe add charts

Donations

License

The MIT License (MIT).

About

Decred mining proxy

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 75.8%
  • HTML 17.9%
  • CSS 4.1%
  • JavaScript 1.8%
  • Shell 0.4%