Skip to content

Commit 112b807

Browse files
committed
Timelock management fixes
1 parent 7a56f2e commit 112b807

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/code/async/geyser/service.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ func (p *service) Start(ctx context.Context, _ time.Duration) error {
6969
p.log.WithError(err).Warn("timelock backup worker terminated unexpectedly")
7070
}
7171
}()
72-
go func() {
72+
/*go func() {
7373
err := p.backupTimelockStateWorker(ctx, timelock_token.StateUnknown, p.conf.backupTimelockWorkerInterval.Get(ctx))
7474
if err != nil && err != context.Canceled {
7575
p.log.WithError(err).Warn("timelock backup worker terminated unexpectedly")
7676
}
77-
}()
77+
}()*/
7878

7979
go func() {
8080
err := p.backupExternalDepositWorker(ctx, p.conf.backupExternalDepositWorkerInterval.Get(ctx))

pkg/code/async/sequencer/timelock.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func markTimelockLocked(ctx context.Context, data code_data.Provider, vault stri
2323
case timelock_token_v1.StateLocked, timelock_token_v1.StateWaitingForTimeout, timelock_token_v1.StateUnlocked:
2424
return nil
2525
}
26-
if record.Block <= slot {
26+
if record.Block >= slot {
2727
return nil
2828
}
2929

0 commit comments

Comments
 (0)