From 06167896f966974ea6dc7363fbc72e32a9518d4a Mon Sep 17 00:00:00 2001 From: frankcrypto Date: Mon, 11 Dec 2023 11:49:51 +0800 Subject: [PATCH] fix --- core/types/pow/diff.go | 2 +- core/types/pow/difficultymanager/meer.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/core/types/pow/diff.go b/core/types/pow/diff.go index 7c102267..86892646 100644 --- a/core/types/pow/diff.go +++ b/core/types/pow/diff.go @@ -24,7 +24,7 @@ const ( // MEER difficulty adjustment DIFFICULTY_MODE_MEER = 0 // KASPAD difficulty adjustment - DIFFICULTY_MODE_KASPAD + DIFFICULTY_MODE_KASPAD = 1 ) // HashToBig converts a hash.Hash into a big.Int that can be used to diff --git a/core/types/pow/difficultymanager/meer.go b/core/types/pow/difficultymanager/meer.go index ecff9a0e..482b08d6 100644 --- a/core/types/pow/difficultymanager/meer.go +++ b/core/types/pow/difficultymanager/meer.go @@ -305,7 +305,6 @@ func (m *meerDiff) RequiredDifficulty(block model.Block, newBlockTime time.Time, "diff", fmt.Sprintf("(%064x)", oldDiffBig)) log.Debug("New target", "bits", fmt.Sprintf("%08x", nextDiffBits), "diff", fmt.Sprintf("(%064x)", nextDiffBig)) - return nextDiffBits, nil }