diff --git a/consensus/blake3pow/consensus.go b/consensus/blake3pow/consensus.go index a64f524cf6..1aebb36936 100644 --- a/consensus/blake3pow/consensus.go +++ b/consensus/blake3pow/consensus.go @@ -350,7 +350,7 @@ func (blake3pow *Blake3pow) HasCoincidentDifficulty(header *types.Header) bool { if nodeCtx > common.PRIME_CTX { domCtx := nodeCtx - 1 domTarget := new(big.Int).Div(big2e256, header.Difficulty(domCtx)) - if new(big.Int).SetBytes(blake3pow.SealHash(header).Bytes()).Cmp(domTarget) <= 0 { + if new(big.Int).SetBytes(header.Hash().Bytes()).Cmp(domTarget) <= 0 { return true } } @@ -379,7 +379,7 @@ func (blake3pow *Blake3pow) verifySeal(chain consensus.ChainHeaderReader, header } // Check that SealHash meets the difficulty target target := new(big.Int).Div(big2e256, header.Difficulty()) - if new(big.Int).SetBytes(blake3pow.SealHash(header).Bytes()).Cmp(target) > 0 { + if new(big.Int).SetBytes(header.Hash().Bytes()).Cmp(target) > 0 { return errInvalidPoW } return nil @@ -451,7 +451,6 @@ func (blake3pow *Blake3pow) SealHash(header *types.Header) (hash common.Hash) { Location: header.Location(), Time: header.Time(), Extra: header.Extra(), - Nonce: header.Nonce(), } for i := 0; i < common.HierarchyDepth; i++ { hdata.ParentHash[i] = header.ParentHash(i) diff --git a/consensus/blake3pow/sealer.go b/consensus/blake3pow/sealer.go index 9309f6c305..232977709b 100644 --- a/consensus/blake3pow/sealer.go +++ b/consensus/blake3pow/sealer.go @@ -143,7 +143,7 @@ search: // Compute the PoW value of this nonce header = types.CopyHeader(header) header.SetNonce(types.EncodeNonce(nonce)) - hash := blake3pow.SealHash(header).Bytes() + hash := header.Hash().Bytes() if powBuffer.SetBytes(hash).Cmp(target) <= 0 { // Correct nonce found, create a new header with it diff --git a/core/knot/ropsten_knot.rlp b/core/knot/ropsten_knot.rlp index 21a79a937f..6cda305cd2 100644 Binary files a/core/knot/ropsten_knot.rlp and b/core/knot/ropsten_knot.rlp differ