-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: implement eth_feeHistory API method. #2221
base: main
Are you sure you want to change the base?
feat: implement eth_feeHistory API method. #2221
Conversation
|
Branch | 1512-implement-eth_feehistory-to-support-type-2-transactions |
Testbed | self-hosted |
Click to view all benchmark results
Benchmark | Latency | Benchmark Result milliseconds (ms) (Result Δ%) | Upper Boundary milliseconds (ms) (Limit %) |
---|---|---|---|
full-blocks-erc20-transfers/full-blocks-erc20-transfers | 📈 view plot 🚷 view threshold | 1,067.70 (-13.98%) | 1,634.08 (65.34%) |
full-blocks-evm-transfers/full-blocks-evm-transfers | 📈 view plot 🚷 view threshold | 446.00 (-10.91%) | 719.25 (62.01%) |
full-blocks-zil-transfers/full-blocks-zil-transfers | 📈 view plot 🚷 view threshold | 4,130.60 (+5.04%) | 5,142.49 (80.32%) |
process-empty/process-empty | 📈 view plot 🚷 view threshold | 10.34 (+13.62%) | 11.43 (90.51%) |
…ment-eth_feehistory-to-support-type-2-transactions
…ment-eth_feehistory-to-support-type-2-transactions
…ment-eth_feehistory-to-support-type-2-transactions
…ment-eth_feehistory-to-support-type-2-transactions
zilliqa/src/api/eth.rs
Outdated
let mut params = params.sequence(); | ||
let block_count: u64 = params.next()?; | ||
let newest_block: BlockNumberOrTag = params.next()?; | ||
let reward_percentiles: Option<Vec<f64>> = params.optional_next()?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let reward_percentiles: Option<Vec<f64>> = params.optional_next()?; | |
let reward_percentiles: Vec<f64> = params.optional_next()?.unwrap_or_default(); |
to save the extra branching later?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we should avoid including reward
in the response if reward_percentiles
is absent. Doesn't this imply that we need at least one branch?
… fee history structure
…ment-eth_feehistory-to-support-type-2-transactions
…ment-eth_feehistory-to-support-type-2-transactions
…ment-eth_feehistory-to-support-type-2-transactions
No description provided.