Browse Source

Update miner.go

miner: add second param to etchash.New() calls
master
yuriy0803 5 years ago committed by GitHub
parent
commit
d13642ae7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      proxy/miner.go

4
proxy/miner.go

@ -18,9 +18,9 @@ var hasher *etchash.Etchash = nil
func (s *ProxyServer) processShare(login, id, ip string, t *BlockTemplate, params []string) (bool, bool) { func (s *ProxyServer) processShare(login, id, ip string, t *BlockTemplate, params []string) (bool, bool) {
if hasher == nil { if hasher == nil {
if s.config.Network == "classic" { if s.config.Network == "classic" {
hasher = etchash.New(&ecip1099FBlockClassic) hasher = etchash.New(&ecip1099FBlockClassic, nil)
} else if s.config.Network == "mordor" { } else if s.config.Network == "mordor" {
hasher = etchash.New(&ecip1099FBlockMordor) hasher = etchash.New(&ecip1099FBlockMordor, nil)
} else { } else {
// unknown network // unknown network
log.Printf("Unknown network configuration %s", s.config.Network) log.Printf("Unknown network configuration %s", s.config.Network)

Loading…
Cancel
Save