From 083140773f1a8078128341b0b72c5fbef9df322a Mon Sep 17 00:00:00 2001 From: yirenz Date: Mon, 19 Aug 2024 18:00:05 -0400 Subject: [PATCH] fix: init app earliest version correctly after state sync (#535) ## Describe your changes and provide context init app earliest version correctly after state sync to avoid app earliest version < block earliest version ## Testing performed to validate your change Co-authored-by: blindchaser --- storev2/rootmulti/store.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/storev2/rootmulti/store.go b/storev2/rootmulti/store.go index e4abfbf25..fc8da4561 100644 --- a/storev2/rootmulti/store.go +++ b/storev2/rootmulti/store.go @@ -765,6 +765,10 @@ loop: if ssImporter != nil { close(ssImporter) } + // initialize the earliest version for SS store + if rs.ssStore != nil { + rs.ssStore.SetEarliestVersion(height) + } return snapshotItem, restoreErr }