Skip to content

Commit

Permalink
more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
manav2401 committed Feb 6, 2025
1 parent 30ac3f0 commit 22fdfb3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions consensus/bor/bor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -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
}

Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 22fdfb3

Please sign in to comment.