You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(l2): remove async from Blockchain::new_evm (#5062)
**Motivation**
Block execution is a blocking process, except for some parts which
_could be_ async, like DB access. We're currently working on removing
async-ness from block execution, for performance reasons, and a recently
added `await` for L2's fee config is bringing us some problems.
**Description**
This PR changes the `tokio::sync::RwLock` to a `std::sync::RwLock`, to
avoid `async` use during block execution. This shouldn't impact the
tokio runtime, due to the lock being updated every L1 block, and the
change being a single assign operation.
0 commit comments