Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
frankcrypto committed Dec 11, 2023
1 parent ce9c333 commit 0616789
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion core/types/pow/diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion core/types/pow/difficultymanager/meer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 0616789

Please sign in to comment.