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

Round down fee in tinybars #9973

Conversation

xin-hedera
Copy link
Collaborator

@xin-hedera xin-hedera commented Dec 17, 2024

Description:

This PR fixes the inconsistent fee issue

  • Round down when converting gas price to fee in tinybars

Related issue(s):

Fixes #9942

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

@xin-hedera xin-hedera self-assigned this Dec 17, 2024
@xin-hedera xin-hedera added bug Type: Something isn't working rest Area: REST API labels Dec 17, 2024
@xin-hedera xin-hedera added this to the 0.121.0 milestone Dec 17, 2024
@xin-hedera xin-hedera marked this pull request as ready for review December 17, 2024 16:18
@xin-hedera xin-hedera requested a review from a team as a code owner December 17, 2024 16:18
Copy link

codecov bot commented Dec 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.31%. Comparing base (fcd2790) to head (0874c3b).
Report is 3 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #9973      +/-   ##
============================================
+ Coverage     92.21%   92.31%   +0.09%     
+ Complexity     7840     7737     -103     
============================================
  Files           954      936      -18     
  Lines         32791    32537     -254     
  Branches       4141     4121      -20     
============================================
- Hits          30238    30035     -203     
+ Misses         1581     1535      -46     
+ Partials        972      967       -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@edwin-greene edwin-greene left a comment

Choose a reason for hiding this comment

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

Looks good to me

@xin-hedera xin-hedera merged commit 26878b7 into main Dec 17, 2024
32 checks passed
@xin-hedera xin-hedera deleted the 9942-mirror-and-consensus-nodes-use-different-rounding-strategies-when-converting-gas-fees-from-cents-to-tinybars branch December 17, 2024 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Type: Something isn't working rest Area: REST API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mirror and Consensus Nodes use different rounding strategies when converting gas fees from cents to tinybars
3 participants