perf(engine): create standalone state root task #12053
Labels
A-consensus
Related to the consensus engine
A-trie
Related to Merkle Patricia Trie implementation
C-perf
A change motivated by improving speed, memory usage or disk footprint
Description
Create a standalone state root task that is spawned before block execution starts.
reth/crates/engine/tree/src/tree/mod.rs
Lines 2171 to 2173 in 2fba3c0
A task should initialize a blinded sparse and subscribe to transaction state stream. As it receives transaction execution results, it should fetch the proofs for relevant accounts from the database and reveal them to the tree.
Then it should update relevant leaves according to the result of the transaction.
A lot of things can be reused from #11154.
Tasks
The text was updated successfully, but these errors were encountered: