From 1b8ec07b2ef1755fdce581261911cebf2dc7177c Mon Sep 17 00:00:00 2001 From: NathanBSC Date: Thu, 11 May 2023 16:29:37 +0800 Subject: [PATCH] fix: log info when failed to verifyVoteAttestation --- consensus/parlia/parlia.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/consensus/parlia/parlia.go b/consensus/parlia/parlia.go index 2c2de749cc..b660217c17 100644 --- a/consensus/parlia/parlia.go +++ b/consensus/parlia/parlia.go @@ -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