forked from ethereumjs/ethereumjs-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement eth_feeHistory (ethereumjs#3295)
* implement effective priority fee retrieval implement fee history rpc method refactor and adjust return values add integer validation add test for maximum base fee increase fix backward compatibility add remaining tests use calcNextBaseFee from parent block header use bigint array instead of number array for the optional param remove redundant bigIntMax retrieve initial base fee from common * client: fix build * client: partial fix tests * client: edit feeHistory tests * client/tx address some review * tx: make getEffectivePriorityFee redunt * tx: add getEffectivePriorityFee tests * vm: add todo * client: eth_feeHistory fixes + test additions * client/rpc: add rewardPrcentile check * client: add validation tests for the ratio * client: eth_feeHistory fix rewards? * Add partial tests for reward percentiles * client: feeHistory sort txs by prioFee * add more tests * client: add extra feeHistory rewards tests * vm: use getEffectivePriorityFee * client: update mock blockhash * add blob fee to feeHistory * block: add calcNextBlobGasPrice * client: fix feeHistory implementation and add test output * client: lint * separate validators for rewardPercentile and array * client: test rewardPercentile validator * Apply comments and add tests --------- Co-authored-by: Marko <[email protected]> Co-authored-by: acolytec3 <[email protected]> Co-authored-by: ScottyPoi <[email protected]> Co-authored-by: Scotty <[email protected]>
- Loading branch information
1 parent
d8bd18b
commit a35bf07
Showing
21 changed files
with
920 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.