Skip to content
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

Fix encode contract events metering #1026

Merged
merged 1 commit into from
Sep 1, 2023
Merged

Conversation

jayz22
Copy link
Contributor

@jayz22 jayz22 commented Aug 30, 2023

What

Resolves stellar/stellar-core#3902

Why

Previously it calls metered_collect with the input being the size of the event buffer. This makes the metering numbers inconsistent when diagnostic events are turned on or off.

Known limitations

Needs more end-to-end testing on diagnostic events to catch future errors like this. #916

@graydon graydon added this pull request to the merge queue Sep 1, 2023
Merged via the queue into stellar:main with commit 5df8951 Sep 1, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Diagnostics affect instruction and memory when they shouldn't
2 participants