Don't log "invalid mix digest" in Quorum.

This commit is contained in:
Joel Burget 2017-10-11 14:43:15 -04:00
parent 1aee2ae53a
commit 52d51fa954
1 changed files with 2 additions and 7 deletions

View File

@ -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 {