risechain / pevm

Blazingly fast Parallel EVM
MIT License
217 stars 41 forks source link

Tighter read origin validation #353

Open hai-rise opened 1 month ago

hai-rise commented 1 month ago

We currently compare transaction incarnations for validation leading to over-estimation when different incarnations write the same value to the memory location (this could be common). A tradeoff we can try is to store (cloned) read values not to invalidate when the read value hasn't changed. Another heuristic to avoid expensive value comparisons is invalidating when we read from a different transaction now (there's a high chance the value has changed).