Skip to content

Commit

Permalink
Caplin: fixed validators refill for empty state snapshots (#12687)
Browse files Browse the repository at this point in the history
  • Loading branch information
Giulio2002 authored Nov 9, 2024
1 parent c6824f4 commit 7e6f9c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cl/antiquary/state_antiquary.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ func FillStaticValidatorsTableIfNeeded(ctx context.Context, logger log.Logger, s
if err := stateSn.OpenFolder(); err != nil {
return false, err
}
if stateSn.BlocksAvailable() == 0 {
return false, nil
}
blocksAvaiable := stateSn.BlocksAvailable()
stateSnRoTx := stateSn.View()
defer stateSnRoTx.Close()
Expand Down

0 comments on commit 7e6f9c4

Please sign in to comment.