Replies: 1 comment
-
gotcha let database_provider = ctx.provider().database_provider_ro()?;
let provider = LatestStateProviderRef::new(
database_provider.tx_ref(),
database_provider.static_file_provider().clone()
); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I’d like to simulate some contract code using exex. What’s the recommended way to use the block executor with the current state? I need to run a stateless transition based on the current EVM database
Also, when my node is still syncing, reth-exex might end up simulating against an outdated state from a peer. I’d like to run simulations only against the latest block state (not the committed block, which I understand is already exposed via ExEx notifications).
Is there a way to access the most recent block from a connected peer during sync, so that I can simulate using that up-to-date state instead of an older one to avoid a unnecessary simulation?
Beta Was this translation helpful? Give feedback.
All reactions