From 71ec704cee46dce24b5af9cb1f73e31b69059809 Mon Sep 17 00:00:00 2001 From: Kartik Bhat Date: Fri, 1 Nov 2024 07:20:22 -0400 Subject: [PATCH] SS Only Write Leaf Nodes (#548) ## Describe your changes and provide context - Only write iavl leaf nodes to ss during initial sc migration - This was removed previously incorrectly ## Testing performed to validate your change - Testing on rpc migration node --- storev2/rootmulti/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storev2/rootmulti/store.go b/storev2/rootmulti/store.go index 8a4268920..81cfb1718 100644 --- a/storev2/rootmulti/store.go +++ b/storev2/rootmulti/store.go @@ -763,7 +763,7 @@ loop: scImporter.AddNode(node) // Check if we should also import to SS store - if rs.ssStore != nil && ssImporter != nil { + if rs.ssStore != nil && node.Height == 0 && ssImporter != nil { ssImporter <- sstypes.SnapshotNode{ StoreKey: storeKey, Key: node.Key,