reth
reth copied to clipboard
feat: enable parallel root during persistence
trafficstars
This enables parallel root calculation, only if the blocks being saved are ancestors of the block being executed.
This first updates the persistence state to keep track of the current action being done, except for when saving the safe / finalized blocks. The action is checked before we determine whether or not to use the parallel root.
This also relaxes checks in the consistent view provider, following the reasoning in https://github.com/paradigmxyz/reth/issues/12688. Without the solution outlined in https://github.com/paradigmxyz/reth/issues/12688 however, we can't fully remove the consistent view provider.