-
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: add block rewards to trace_block
#3491
Conversation
Codecov Report
... and 13 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more.
|
(self.inner.eth_api.block_by_id(block_id).await?, traces.as_mut()) | ||
{ | ||
if let Some(header_td) = self.provider().header_td(&block.header.hash)? { | ||
if let Some(base_block_reward) = base_block_reward( |
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.
if this is none we are past the merge and there are no block rewards and no ommers
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.
naming nits,
Reader
doesn't make sense here imo, so we should stick with Provider
naming
@@ -396,7 +399,7 @@ where | |||
&self, | |||
block_id: BlockId, | |||
) -> EthResult<Option<Vec<LocalizedTransactionTrace>>> { | |||
let traces = self | |||
let mut traces: Option<Vec<LocalizedTransactionTrace>> = self |
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.
perf: can use futures::try_join
with the cache call
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's do in follow-up as i'd like to unblock this asap
5ad6a3b
to
3ccc5af
Compare
Closes #3443