Skip to content

Commit

Permalink
Fix: fixed merge related bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
hmoog committed Mar 6, 2023
1 parent 36ba025 commit 5d2de7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/protocol/engine/clock/blocktime/clock.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ func NewProvider(opts ...options.Option[Clock]) module.Provider[*engine.Engine,
}, opts, func(c *Clock) {
e.HookConstructed(func() {
e.LedgerState.HookInitialized(func() {
c.accepted.Set(e.SlotTimeProvider.EndTime(e.Storage.Settings.LatestCommitment().Index()))
c.confirmed.Set(e.SlotTimeProvider.EndTime(e.Storage.Settings.LatestCommitment().Index()))
c.accepted.Set(e.SlotTimeProvider().EndTime(e.Storage.Settings.LatestCommitment().Index()))
c.confirmed.Set(e.SlotTimeProvider().EndTime(e.Storage.Settings.LatestCommitment().Index()))

c.TriggerInitialized()
})
Expand All @@ -52,7 +52,7 @@ func NewProvider(opts ...options.Option[Clock]) module.Provider[*engine.Engine,
}, async).Unhook,

e.Events.Consensus.SlotGadget.SlotConfirmed.Hook(func(index slot.Index) {
c.confirmed.Advance(e.SlotTimeProvider.EndTime(index))
c.confirmed.Advance(e.SlotTimeProvider().EndTime(index))
}, async).Unhook,
))
})
Expand Down

0 comments on commit 5d2de7b

Please sign in to comment.