Skip to content
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

chore(sidecar): warn in case of inconsistent gross revenue calculations #353

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

thedevbirb
Copy link
Contributor

@thedevbirb thedevbirb commented Nov 4, 2024

No description provided.

@thedevbirb thedevbirb requested a review from mempirate November 5, 2024 10:41
@thedevbirb thedevbirb added C: bolt-sidecar Component: bolt-sidecar T: chore Type: Chore labels Nov 5, 2024
@thedevbirb thedevbirb merged commit d4bc8a8 into unstable Nov 5, 2024
2 of 3 checks passed
@@ -464,9 +467,10 @@ impl<C: StateFetcher> ExecutionState<C> {
if let Some(template) = self.remove_block_template(slot) {
debug!(%slot, "Removed block template for slot");
let hashes = template.transaction_hashes();
let receipts = self.client.get_receipts(&hashes).await?;
let receipts =
self.client.get_receipts(&hashes).await?.into_iter().flatten().collect::<Vec<_>>();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this will allocate twice instead of once like previouy

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, fixed with 90891bf

@merklefruit merklefruit deleted the lore/chore/log-missing-receipts branch November 6, 2024 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: bolt-sidecar Component: bolt-sidecar T: chore Type: Chore
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants