From 22fdfb3832056886016c09b9ea066f72ffc66cfa Mon Sep 17 00:00:00 2001 From: Manav Darji Date: Thu, 6 Feb 2025 17:50:29 +0530 Subject: [PATCH] more logs --- consensus/bor/bor.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/consensus/bor/bor.go b/consensus/bor/bor.go index e54fd36b3b..0078e4355f 100644 --- a/consensus/bor/bor.go +++ b/consensus/bor/bor.go @@ -460,6 +460,7 @@ func (c *Bor) verifyCascadingFields(chain consensus.ChainHeaderReader, header *t // Retrieve the snapshot needed to verify this header and cache it snap, err := c.snapshot(chain, number-1, header.ParentHash, parents) if err != nil { + log.Error("[debug] error loading snapshot", "number", number, "err", err) return err } @@ -469,6 +470,7 @@ func (c *Bor) verifyCascadingFields(chain consensus.ChainHeaderReader, header *t // used to make the call is of the same fork. newValidators, err := c.spanner.GetCurrentValidatorsByBlockNrOrHash(context.Background(), rpc.BlockNumberOrHashWithHash(header.ParentHash, false), number+1) if err != nil { + log.Error("[debug] err in fetching vals in bor ", "err", err) return err } @@ -665,6 +667,7 @@ func (c *Bor) verifySeal(chain consensus.ChainHeaderReader, header *types.Header // Retrieve the snapshot needed to verify this header and cache it snap, err := c.snapshot(chain, number-1, header.ParentHash, parents) if err != nil { + log.Info("[debug] err loading snapshot in verify seal", "err", err, "number", number) return err }