-
Notifications
You must be signed in to change notification settings - Fork 86
feat(l1): add gas used diff in error #3644
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
Conversation
Lines of code reportTotal lines added: Detailed view
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, created an issue just in case because we have an error mapper within the execution spec tests repo and changing these strings often require making changes in the mapper. #3646
crates/blockchain/blockchain.rs
Outdated
// dbg!(last.cumulative_gas_used); | ||
// dbg!(block_header.gas_used); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can remove this if you want to, what you did serves as a replacement for this
**Motivation** When there's a gas mismatch, there's no way to tell what is the mismatch unless we print it manually. If it's present in the error, at least it appears in the test logs when it happens. **Description** - Adds used and expected fields for the GasUsedMismatchError. - Adds the fields in the block gas post-exec validation.
Motivation
When there's a gas mismatch, there's no way to tell what is the mismatch unless we print it manually. If it's present in the error, at least it appears in the test logs when it happens.
Description