Compare commits

...

1 Commits

Author SHA1 Message Date
Arsenii Kulikov
7b5cbd3c46 fix: don't produce both updates and removals for trie nodes (#22507)
Co-authored-by: Brian Picciano <me@mediocregopher.com>
2026-03-12 01:40:49 +00:00
2 changed files with 6 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
reth-trie-sparse: patch
---
Fixed a bug where trie nodes could appear in both `updated_nodes` and `removed_nodes` simultaneously by removing entries from `removed_nodes` when a node is inserted as updated.

View File

@@ -1957,6 +1957,7 @@ impl ParallelSparseTrie {
}
SparseTrieUpdatesAction::InsertUpdated(path, branch_node) => {
updates.updated_nodes.insert(path, branch_node);
updates.removed_nodes.remove(&path);
}
}
}