From d13642ae7ef6c1d8cbf6241d0f1235d3fc6a2b6b Mon Sep 17 00:00:00 2001 From: yuriy0803 <68668177+yuriy0803@users.noreply.github.com> Date: Wed, 2 Jun 2021 19:10:24 +0200 Subject: [PATCH] Update miner.go miner: add second param to etchash.New() calls --- proxy/miner.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy/miner.go b/proxy/miner.go index 3c0b28e..e48e18a 100644 --- a/proxy/miner.go +++ b/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) { if hasher == nil { if s.config.Network == "classic" { - hasher = etchash.New(&ecip1099FBlockClassic) + hasher = etchash.New(&ecip1099FBlockClassic, nil) } else if s.config.Network == "mordor" { - hasher = etchash.New(&ecip1099FBlockMordor) + hasher = etchash.New(&ecip1099FBlockMordor, nil) } else { // unknown network log.Printf("Unknown network configuration %s", s.config.Network)