mirror of https://github.com/poanetwork/quorum.git
Don't log "invalid mix digest" in Quorum.
This commit is contained in:
parent
1aee2ae53a
commit
52d51fa954
|
@ -505,14 +505,9 @@ func (ethash *Ethash) VerifySeal(chain consensus.ChainReader, header *types.Head
|
|||
size = 32 * 1024
|
||||
}
|
||||
digest, result := hashimotoLight(size, cache, header.HashNoNonce().Bytes(), header.Nonce.Uint64())
|
||||
if !bytes.Equal(header.MixDigest[:], digest) {
|
||||
if isQuorum {
|
||||
log.Info("invalid mix digest", "calculated", fmt.Sprintf("%x", digest), "in header", fmt.Sprintf("%x", header.MixDigest[:]))
|
||||
} else {
|
||||
if !isQuorum && !bytes.Equal(header.MixDigest[:], digest) {
|
||||
return errInvalidMixDigest
|
||||
}
|
||||
|
||||
}
|
||||
target := new(big.Int).Div(maxUint256, header.Difficulty)
|
||||
if new(big.Int).SetBytes(result).Cmp(target) > 0 {
|
||||
if !isQuorum {
|
||||
|
|
Loading…
Reference in New Issue