-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Finalized always return block 0 #7245
Comments
how should we handle these tags, use the latest or do a mod 32 on the chain height? |
We've also ran into this. I think for us both would but fine, but if it's not too cumbersome: how about mod N with N being a parameter passed to Anvil at startup? |
I think we should do:
|
@yash-atreya adding this to anvil cli args would be simple turns out we already do a mod 32: foundry/crates/anvil/src/eth/backend/mem/mod.rs Lines 1487 to 1502 in ce22450
but we can move the constant into a field and add a simple test for this: |
@mattsse Thanks for the tag. I'll look into it. |
Kind of related, but the reason this was an issue for us is because |
ah I think I know what this is, will check |
Component
Anvil
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (4f00ec6 2024-02-17T00:16:39.754919679Z)
What command(s) is the bug in?
No response
Operating System
Linux
Describe the bug
JSON RPC call to
get_block(BlockNumber::Finalized)
always returns the 0th block for some reason.The text was updated successfully, but these errors were encountered: