-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 fee history #9940
fix fee history #9940
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.
I absolutely love this endpoint hehe
let pending_block_hash = if is_pending_block { | ||
if let Some(pending_block) = self.block(BlockNumberOrTag::Pending.into()).await? { |
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.
we can make this slightly nicer by storing the pending block as an option and effectively collapse these two checks
as discussed also need to use
fn load_block_and_receipts( |
because we need the receipts as well, because we need them for the rewards
this issue is somewhat related here but not a blocker
@@ -154,11 +155,23 @@ pub trait EthFees: LoadFee { | |||
base_fee_per_blob_gas.push(last_entry.next_block_blob_fee().unwrap_or_default()); | |||
} else { |
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 are two modes in this impl, one where everything is cached,, the if branch of this else branch, in which we'd also need to add an additional entry for the pending block.
so it would make sense to calculate the pending things above the if statement and then update the fee entries or the non-cached mode accordingly
Any updates on this issue? |
Yes, I am going to get this over the line, sorry for the delay |
Any updates on review ? |
think @onbjerg means he will push changes to the branch and get your commits in along with his to push this over the line |
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.
this drifted too much and needs a new attempt at fixing it
Closes #9903