From 8890050875b3d487fc3d43e335dac28ed4151674 Mon Sep 17 00:00:00 2001 From: yuriy0803 Date: Thu, 11 Aug 2022 20:00:41 +0200 Subject: [PATCH] Update miner.go --- proxy/miner.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/proxy/miner.go b/proxy/miner.go index 8623a46..936e2f1 100644 --- a/proxy/miner.go +++ b/proxy/miner.go @@ -6,15 +6,17 @@ import ( "strconv" "strings" - "github.com/ethereum/go-ethereum/common" "github.com/etclabscore/go-etchash" + "github.com/ethereum/go-ethereum/common" ) -var ecip1099FBlockClassic uint64 = 11700000 // classic mainnet -var ecip1099FBlockMordor uint64 = 2520000 // mordor -var uip1FEpoch uint64 = 22 // ubiq mainnet - -var hasher *etchash.Etchash = nil +var ( + maxUint256 = new(big.Int).Exp(big.NewInt(2), big.NewInt(256), big.NewInt(0)) + ecip1099FBlockClassic uint64 = 11700000 // classic mainnet + ecip1099FBlockMordor uint64 = 2520000 // mordor + uip1FEpoch uint64 = 22 // ubiq mainnet + hasher *etchash.Etchash = nil +) func (s *ProxyServer) processShare(login, id, ip string, t *BlockTemplate, params []string) (bool, bool) { if hasher == nil {