From aa07f75ff0475c8c3aff5dd54858ead2d95964bb Mon Sep 17 00:00:00 2001 From: Lazar <12626340+Lazar955@users.noreply.github.com> Date: Thu, 9 Jan 2025 09:40:24 +0100 Subject: [PATCH] fix: resubmit interval (#160) [backport] (#162) We forgot to update the time o the checkpoint. closes #151 again --- CHANGELOG.md | 4 ++++ submitter/relayer/relayer.go | 1 + 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c592e9..0663055 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ## Unreleased +### Bug Fixes + +* [#160](https://github.com/babylonlabs-io/vigilante/pull/160) fix: resubmit interval + ## v0.19.1 ### Bug Fixes diff --git a/submitter/relayer/relayer.go b/submitter/relayer/relayer.go index 3001d26..1498b47 100644 --- a/submitter/relayer/relayer.go +++ b/submitter/relayer/relayer.go @@ -220,6 +220,7 @@ func (rl *Relayer) MaybeResubmitSecondCheckpointTx(ckpt *ckpttypes.RawCheckpoint // update the second tx of the last submitted checkpoint as it is replaced rl.lastSubmittedCheckpoint.Tx2 = resubmittedTx2 + rl.lastSubmittedCheckpoint.TS = time.Now() storedCkpt := store.NewStoredCheckpoint( rl.lastSubmittedCheckpoint.Tx1.Tx,