Skip to content

core/state: fix metering-flaw#22021

Closed
holiman wants to merge 1 commit intoethereum:masterfrom
holiman:meterfix
Closed

core/state: fix metering-flaw#22021
holiman wants to merge 1 commit intoethereum:masterfrom
holiman:meterfix

Conversation

@holiman
Copy link
Copy Markdown
Contributor

@holiman holiman commented Dec 15, 2020

This PR fixes a flaw in the metering, where we failed to properly account for time elapsed while checking the snapshot storage reads. We double-booked the time elapsed on both snapshot-storage-reads and storage-reads, in case the first one failed.
This has the side-effect of the execution time also being under-represented.

@holiman
Copy link
Copy Markdown
Contributor Author

holiman commented Jan 20, 2021

This will be fixed when we merge #21047

@holiman holiman closed this Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant