persisted_trie_updates
data lost on restart prevents node from handling reorgs
#13940
Labels
persisted_trie_updates
data lost on restart prevents node from handling reorgs
#13940
Describe the feature
If node is restarted, then we are losing
persisted_trie_updates
data inTreeState
. This results inexecuted_block_by_hash
always returningNone
for canonical blocksreth/crates/engine/tree/src/tree/mod.rs
Lines 1593 to 1595 in f93d307
This results in node not being able to handle reorgs by ending up here
reth/crates/engine/tree/src/tree/mod.rs
Lines 943 to 945 in f93d307
Solution for this is to ignore cache misses in
persisted_trie_updates
for canonical blocks because we don't needTrieUpdates
for reorg of the canonical chain, and for sidechains they are always present because those live fully in memoryAdditional context
No response
The text was updated successfully, but these errors were encountered: