fix: don't produce both updates and removals for trie nodes (#22507)

Co-authored-by: Brian Picciano <me@mediocregopher.com>
This commit is contained in:
Arsenii Kulikov
2026-02-24 14:36:34 +04:00
committed by GitHub
parent ea98d37bb3
commit ef292ffa00
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

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