From d173cbf822244085077c5576a11a4efb8d8cd82b Mon Sep 17 00:00:00 2001 From: NathanBSC <122502194+NathanBSC@users.noreply.github.com> Date: Tue, 4 Apr 2023 16:15:11 +0800 Subject: [PATCH] improve log style when Verify vote attestation fail (#78) --- consensus/parlia/parlia.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/consensus/parlia/parlia.go b/consensus/parlia/parlia.go index fd6ccd55d6..d4b6f46d33 100644 --- a/consensus/parlia/parlia.go +++ b/consensus/parlia/parlia.go @@ -597,7 +597,8 @@ func (p *Parlia) verifyCascadingFields(chain consensus.ChainHeaderReader, header if chain.Config().IsLynn(header.Number) { return err } - log.Warn("Verify vote attestation failed", "error", err, "block", header) + 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