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: use percentage for eth fee history #4071

Merged
merged 1 commit into from Oct 9, 2023

Conversation

dandanlen
Copy link
Collaborator

Fixes fee history calculation. Cherry pick from kitkat.

@codecov
Copy link

codecov bot commented Oct 4, 2023

Codecov Report

Merging #4071 (99cd725) into main (8a2d95a) will decrease coverage by 0%.
Report is 2 commits behind head on main.
The diff coverage is 0%.

@@          Coverage Diff          @@
##            main   #4071   +/-   ##
=====================================
- Coverage     71%     71%   -0%     
=====================================
  Files        376     376           
  Lines      59662   59667    +5     
  Branches   59662   59667    +5     
=====================================
+ Hits       42561   42563    +2     
  Misses     14958   14958           
- Partials    2143    2146    +3     
Files Coverage Δ
engine/src/eth/rpc.rs 0% <0%> (ø)
engine/src/witness/eth/eth_chain_tracking.rs 0% <0%> (ø)

... and 5 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@@ -272,7 +272,7 @@ mod tests {
println!("{:?}", block_with_txs);

let fee_history = client
.fee_history(10.into(), BlockNumber::Latest, &[0.1, 0.5, 0.9])
Copy link
Contributor

Choose a reason for hiding this comment

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

Was this always wrong or is this related to mainnet?

Copy link
Contributor

Choose a reason for hiding this comment

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

probably was always wrong, but we only detected it when running against real Ethereum

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah think it's always been wrong

@kylezs kylezs merged commit 1393e82 into main Oct 9, 2023
44 checks passed
@kylezs kylezs deleted the pick/use-percentage-for-fee-history branch October 9, 2023 13:55
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.

None yet

4 participants