Skip to content

Commit

Permalink
Fixed sync manager not restoring the last pruned epoch from disk corr…
Browse files Browse the repository at this point in the history
…ectly
  • Loading branch information
alexsporn committed May 7, 2024
1 parent 014fb64 commit 1197777
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ func New(subModule module.Module, e *engine.Engine, latestCommitment *model.Comm
s.updateSyncStatus()
}, time.Duration(e.CommittedAPI().ProtocolParameters().SlotDurationInSeconds())*time.Second/2, ctxUpdateSyncStatusTicker)

s.updatePrunedEpoch(s.engine.Storage.LastPrunedEpoch())
e.InitializedEvent().OnTrigger(func() {
s.updatePrunedEpoch(s.engine.Storage.LastPrunedEpoch())
})

// set the default bootstrapped function
if s.optsIsBootstrappedFunc == nil {
Expand Down

0 comments on commit 1197777

Please sign in to comment.