Skip to content

Commit

Permalink
SS Only Write Leaf Nodes (#548)
Browse files Browse the repository at this point in the history
## 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
  • Loading branch information
Kbhat1 authored Nov 1, 2024
1 parent d3830c1 commit 71ec704
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storev2/rootmulti/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 71ec704

Please sign in to comment.