mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
querying the start block of next span
This commit is contained in:
parent
a01c180246
commit
1c8e610b3f
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue