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

Dedup deneb delayed lookup logic #4668

Conversation

realbigsean
Copy link
Member

Issue Addressed

We send a delayed lookup request to the networking layer whenever we see the first block components, as well as subsequent components until we receive all components. This de-duplicates these messages when we are sorting through them at delay expiry.

Something else we could do.. is maybe have any of these delayed lookup messages invalidated by an import?

Or maybe this could be further re-worked so that we send no messages from consensus to networking until consensus decides via it's own heuristics a block/blob is "missing". And sends a single "get me these components" message.

@realbigsean realbigsean added ready-for-review The code is ready for review deneb labels Aug 25, 2023
"block" => ?block_root,
);
}
trace!(self.log, "Processing delayed lookup"; "block" => ?block_root, "lookup_id" => id);
Copy link
Member Author

Choose a reason for hiding this comment

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

downgraded this log and removed specific blob index information, because it ends up being outdated since this lookup as been delayed (new blobs from gossip may have arrived).

Also updated "triggering" to "processing" because at this point it's very likely we ended up just getting all block components on gossip and this lookup is no longer required

Copy link
Member

@jimmygchen jimmygchen left a comment

Choose a reason for hiding this comment

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

Looks good 👍

@realbigsean
Copy link
Member Author

Thanks for looking at this jimmy, but I am going to close this in favor of #4732
Which should alleviate this problem as well

@realbigsean realbigsean deleted the fix-deneb-delayed-lookup-logic branch November 21, 2023 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deneb ready-for-review The code is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants