-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Hardhat 3 timestamps are broken if intervalMining
is set to less than 1000
#6012
Comments
@SebastienGllmt can I check, a valid reproduction would be:
We expect the bug to express itself as the timestamp getting out of sync (into the future) from wall clock time. |
Specifically, this is the hardhat config I used
You can get the block using const client = ; // initialize viem public client
while(true) {
const blockNumber = client.getBlockNumber({ cacheTime: 0 });
const block = client.getBlock({ blockNumber });
console.log(block.timestamp)
} |
@SebastienGllmt can you try adding |
@fvictorio that seems to have fixed it, so I guess the fix to this issue is either to make |
I think a warning makes more sense here. I am not a fan of changes in the underlying configuration at unseen break points. We should be explicit. |
Yes, I think the options are:
A warning is easy to add and non-controversial, so I'd say we go with that. |
This was reported by @SebastienGllmt in Telegram.
Next steps
The text was updated successfully, but these errors were encountered: