-
Notifications
You must be signed in to change notification settings - Fork 245
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: extend FeeHistory type with eip-4844 fields #188
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
crates/rpc-types/src/eth/fee.rs
Outdated
/// of the returned range, because this value can be derived from the newest block. Zeroes | ||
/// are returned for pre-EIP-4844 blocks. | ||
pub base_fee_per_blob_gas: Vec<U256>, | ||
/// An array of block blob gas used ratios. These are calculated as the ratio of gasUsed and | ||
/// gasLimit. | ||
pub blob_gas_used_ratio: Vec<f64>, |
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.
these need to be option for now, because only supported after cancun
and skip if none
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.
Should be enough: #[serde(default, skip_serializing_if = "Vec::is_empty")]
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.
these need to be option for now, because only supported after cancun
and skip if none
The spec says just to fill with 0s for pre-cancun blocks, would this not be ok even with cancun not activated?
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.
That's if the network and RPC provider implements the EIP/Cancun
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.
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.
that's both for base_fee_per_blob_gas and blob_gas_used_ratio or only for blob_gas_used_ratio?
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.
both!
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
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
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.
Failures unrelated
Related to reth task: paradigmxyz/reth#6330
according to: ethereum/execution-apis#486