reth icon indicating copy to clipboard operation
reth copied to clipboard

feat: enable parallel root during persistence

Open Rjected opened this issue 1 year ago • 0 comments
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.

Rjected avatar Nov 08 '24 01:11 Rjected