Browse Source

update

master
yuriy0803 2 years ago
parent
commit
55e76d3c4d
  1. 8
      proxy/miner.go

8
proxy/miner.go

@ -24,13 +24,13 @@ func (s *ProxyServer) processShare(login, id, ip string, t *BlockTemplate, param
if hasher == nil {
switch s.config.Network {
case "classic":
hasher = etchash.New(&ecip1099FBlockClassic, nil)
hasher = etchash.New(&ecip1099FBlockClassic, nil) // classic mainnet
case "mordor":
hasher = etchash.New(&ecip1099FBlockMordor, nil)
hasher = etchash.New(&ecip1099FBlockMordor, nil) // mordor
case "ubiq":
hasher = etchash.New(nil, &uip1FEpoch)
hasher = etchash.New(nil, &uip1FEpoch) // ubiq mainnet
case "ethereum", "ropsten", "ethereumPow", "ethereumFair", "callisto", "etica", "expanse", "octaspace", "universal", "canxium":
hasher = etchash.New(nil, nil)
hasher = etchash.New(nil, nil) //ethash
default:
log.Printf("Unknown network configuration %s", s.config.Network)
return false, false

Loading…
Cancel
Save