From 1c8e610b3f799169c4179474b80358b6119bee8f Mon Sep 17 00:00:00 2001 From: Lucca Martins Date: Mon, 27 Jan 2025 09:48:26 -0300 Subject: [PATCH] querying the start block of next span --- consensus/bor/snapshot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consensus/bor/snapshot.go b/consensus/bor/snapshot.go index ae383cbf6f..796a91ac39 100644 --- a/consensus/bor/snapshot.go +++ b/consensus/bor/snapshot.go @@ -162,7 +162,7 @@ func (s *Snapshot) apply(headers []*types.Header, c *Bor) (*Snapshot, error) { if v.CheckEmptyId() { log.Warn("Empty id found on validator set. Querying on the validatorSet contract") - valsWithId, _ := c.spanner.GetCurrentValidatorsByHash(context.Background(), header.Hash(), header.Number.Uint64()) + valsWithId, _ := c.spanner.GetCurrentValidatorsByHash(context.Background(), header.Hash(), number+1) v.IncludeIds(valsWithId) } snap.ValidatorSet = v