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

Fee bug #3912

Merged
merged 1 commit into from
Sep 9, 2023
Merged

Fee bug #3912

merged 1 commit into from
Sep 9, 2023

Conversation

SirTyson
Copy link
Contributor

@SirTyson SirTyson commented Sep 7, 2023

Description

Fixes Double counting readWrite.size when computing Soroban resource fees.

This PR fixes an error and fee accounting where entries in the readWrite set of the footprint were charged double readEntry fees. This also includes a testing overhaul where most fee literals are replaced in InvokeHostFunctionTests.cpp

Checklist

  • Reviewed the contributing document
  • Rebased on top of master (no merge commits)
  • Ran clang-format v8.0.0 (via make format or the Visual Studio extension)
  • Compiles
  • Ran all tests
  • If change impacts performance, include supporting evidence per the performance document

@SirTyson SirTyson marked this pull request as ready for review September 8, 2023 19:56
@SirTyson SirTyson force-pushed the fee-bug branch 2 times, most recently from 18acd08 to 577d587 Compare September 8, 2023 21:43
@marta-lokhova
Copy link
Contributor

Not critical, but if you have a chance, please squash the commits. Either way, LGTM.

Copy link
Contributor

@jayz22 jayz22 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nice work! Thanks

@marta-lokhova
Copy link
Contributor

r+ c14f5cc

@latobarita latobarita merged commit 7dfd4ee into stellar:master Sep 9, 2023
9 checks passed
2opremio added a commit to 2opremio/soroban-cli that referenced this pull request Sep 13, 2023
2opremio added a commit to stellar/stellar-cli that referenced this pull request Sep 13, 2023
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.

4 participants