Skip to content

Commit

Permalink
fix: log info when failed to verifyVoteAttestation
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanBSC authored and brilliant-lx committed May 11, 2023
1 parent b0ad742 commit 1b8ec07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions consensus/parlia/parlia.go
Original file line number Diff line number Diff line change
Expand Up @@ -600,12 +600,12 @@ func (p *Parlia) verifyCascadingFields(chain consensus.ChainHeaderReader, header

// Verify vote attestation for fast finality.
if err := p.verifyVoteAttestation(chain, header, parents); err != nil {
log.Warn("Verify vote attestation failed", "error", err, "hash", header.Hash(), "number", header.Number,
"parent", header.ParentHash, "coinbase", header.Coinbase, "extra", common.Bytes2Hex(header.Extra))
verifyVoteAttestationErrorCounter.Inc(1)
if chain.Config().IsPlato(header.Number) {
return err
}
log.Warn("Verify vote attestation failed", "error", err, "hash", header.Hash(), "number", header.Number,
"parent", header.ParentHash, "coinbase", header.Coinbase, "extra", common.Bytes2Hex(header.Extra))
}

// All basic checks passed, verify the seal and return
Expand Down

0 comments on commit 1b8ec07

Please sign in to comment.