Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opsim should simulate transactions on pending block not latest #118

Open
jakim929 opened this issue Aug 22, 2024 · 1 comment
Open

opsim should simulate transactions on pending block not latest #118

jakim929 opened this issue Aug 22, 2024 · 1 comment

Comments

@jakim929
Copy link
Contributor

jakim929 commented Aug 22, 2024

to more closely mirror sequencer behavior, we should be simulating interop tx WHILE building the block. The block builder should apply those changes on the "pending" block.

Meaning the debug_traceCall should happen at "pending" block, not "latest".

few considerations here

  1. do we want to add a custom delay to replicate a chain's willingness to accept message at "safe" "cross-unsafe" etc. - in that case for those should have custom intervals
  2. debug_traceCall on anvil doesn't support block overrides yet - this is one way to do timestamp / block checks on pending
  3. we should check if "pending" tag works when calling debug_traceCall
@roninjin10
Copy link

Can confirm 'pending' should work on debug_traceCall for all rpcs.

Adding block override support to anvil debug_traceCall would be a pretty tiny lift given they do support it for eth_call

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants