-
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
feat(anvil): Support mining blocks with same timestamp as previous block #9142
Comments
@domob1812 I think this scenario should be solved with #7931 and set |
@domob1812 This is now supported |
I'm not sure it is related to this issue, but with the latest version of anvil, with auto mining, there are now some transactions that are mined in a new block with the same timestamp as the previous one (without tweaking anything in anvil) EDIT: if I call |
@Rubilmax mind to open a ticket with a way to reproduce the problem you see? thank you! |
Component
Anvil
Describe the feature you would like
As far as I am aware, EVM chains can support that a block has the same timestamp as a previous block, as that is required to support sub-second block times. It seems that
anvil
does not allow me to mine a block with the same timestamp as the previous block's (withevm_mine
), as it then complains with:I think it would be helpful to support this, so that we can actually test smart contracts handle a situation like this correctly (in case there is subtle time-dependent logic contained in them).
Additional context
No response
The text was updated successfully, but these errors were encountered: