Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
Giulio2002 committed Nov 14, 2024
1 parent c974375 commit 3431c97
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cl/antiquary/state_antiquary.go
Original file line number Diff line number Diff line change
Expand Up @@ -490,9 +490,10 @@ func (s *Antiquary) IncrementBeaconState(ctx context.Context, to uint64) error {
}

log.Info("Historical states antiquated", "slot", s.currentState.Slot(), "root", libcommon.Hash(stateRoot), "latency", endTime)

if err := s.stateSn.OpenFolder(); err != nil {
return err
if s.stateSn != nil {
if err := s.stateSn.OpenFolder(); err != nil {
return err
}
}

if s.snapgen {
Expand Down

0 comments on commit 3431c97

Please sign in to comment.