-
Notifications
You must be signed in to change notification settings - Fork 37
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(l1): modify the RPC eth_feeHistory
controller implementation
#1797
base: main
Are you sure you want to change the base?
Conversation
|
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.
LGTM
(base_fee_per_gas[idx + 1], base_fee_per_blob_gas[idx + 1]) = | ||
project_next_block_base_fee_values(&header); | ||
} | ||
if self.reward_percentiles.len() > 0 { |
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.
Nit.
if self.reward_percentiles.len() > 0 { | |
if !self.reward_percentiles.len().is_empty() { |
"Expected param to be 0x prefixed".to_owned(), | ||
))?; | ||
let block_count: u64 = | ||
parse_json_hex(¶ms[0]).map_err(|error| RpcErr::BadParams(error))?; |
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.
Nit.
parse_json_hex(¶ms[0]).map_err(|error| RpcErr::BadParams(error))?; | |
parse_json_hex(¶ms[0]).map_err(RpcErr::BadParams)?; |
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.
The PR looks good, left a couple of nits. It'd be nice to add which tests that were not passing are doing it because of these changes.
eth_feeHistory
controller implementationeth_feeHistory
controller implementation
Description
This PR fixes the implementation of the
eth_feeHistory
RPC endpoint, by adding some new validations and modifying how the projected values ofbase_fee_per_gas
andbase_fee_per_blob
are obtained.Note
There is a hive test related to this endpoint which is still not passing, due to the requirement of supporting the Prague update by the execution client. Anyways, the results obtained from this test were compared with Geth and there are the same.