Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Fix actual_fee calculation for v0 #838

Merged
merged 8 commits into from
Jul 25, 2023
Merged

Fix actual_fee calculation for v0 #838

merged 8 commits into from
Jul 25, 2023

Conversation

matias-gonz
Copy link
Contributor

Fix actual_fee calculation for v0

Description

The min(actual_fee, max_fee) * FEE_FACTOR shouldn't be calculated for v0

@matias-gonz matias-gonz self-assigned this Jul 18, 2023
@matias-gonz matias-gonz marked this pull request as ready for review July 18, 2023 17:38
Copy link
Collaborator

@juanbono juanbono left a comment

Choose a reason for hiding this comment

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

Can you add a test using one of the existing cases where the estimation is off

@codecov-commenter
Copy link

codecov-commenter commented Jul 19, 2023

Codecov Report

Merging #838 (bee8770) into main (250c609) will increase coverage by 0.02%.
The diff coverage is 96.72%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #838      +/-   ##
==========================================
+ Coverage   91.73%   91.75%   +0.02%     
==========================================
  Files          54       54              
  Lines       12836    12896      +60     
==========================================
+ Hits        11775    11833      +58     
- Misses       1061     1063       +2     
Files Changed Coverage Δ
src/transaction/fee.rs 95.90% <96.72%> (+0.41%) ⬆️

src/transaction/fee.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@SantiagoPittella SantiagoPittella left a comment

Choose a reason for hiding this comment

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

Please answer Kovacs's question before merging.

@matias-gonz matias-gonz requested review from kkovaacs, Oppen and SantiagoPittella and removed request for kkovaacs and Oppen July 25, 2023 00:48
@SantiagoPittella SantiagoPittella added this pull request to the merge queue Jul 25, 2023
Merged via the queue into main with commit 6805c61 Jul 25, 2023
@juanbono juanbono deleted the fix_max_fee_v0 branch July 31, 2023 23:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants