very important
@ -285,6 +285,8 @@ otherwise you will get errors on start because of JSON comments.**
"pplns": 9000,
// mordor, classic, ethereum, ropsten or ubiq, callisto, etica, ethereumPow, ethereumFair, expanse
"network": "classic",
// etchash, ethash, ubqhash
"algo": "etchash",
// exchange api coingecko
"coin-name":"etc",
@ -4,6 +4,7 @@
"name": "main",
"proxy": {
@ -18,6 +18,7 @@ type Config struct {
Threads int `json:"threads"`
Network string `json:"network"`
Algo string `json:"algo"`
Coin string `json:"coin"`
Pplns int64 `json:"pplns"`
Redis storage.Config `json:"redis"`
@ -468,7 +468,7 @@ func (cs *Session) pushNewJob(s *ProxyServer, result interface{}) error {
},
Height: util.ToHex1(int64(a.Height)),
Algo: s.config.Network,
Algo: s.config.Algo,
}
return cs.enc.Encode(&resp)
@ -568,7 +568,7 @@ func (cs *Session) sendJob(s *ProxyServer, id json.RawMessage, newjob bool) erro
Height: util.ToHex1(int64(t.Height)),
return cs.sendTCPReq(resp)