querying the start block of next span

This commit is contained in:
Lucca Martins 2025-01-27 09:48:26 -03:00
parent a01c180246
commit 1c8e610b3f
No known key found for this signature in database
GPG key ID: DC3D7F76BDAE23BF

View file

@ -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