Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

lookahead collator: read allowed ancestry len from relay clien #3059

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

slumber
Copy link
Contributor

@slumber slumber commented Aug 24, 2023

Closes #2706

Implements 2nd approach from #2706 (comment)

@slumber slumber added B0-silent Changes should not be mentioned in any release notes A0-please_review Pull request needs code review. C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit labels Aug 24, 2023
@slumber slumber requested a review from rphmeier August 24, 2023 14:45

read_result
.map(|config| config.async_backing_params.allowed_ancestry_len as usize)
.unwrap_or(0)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Default value was 2, but any error in this path indicates huge problem related to the node or relay chain.

So 0 is somewhat conservative, although makes little to no difference.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parent search for Aura should draw upon real asynchronous backing parameters
1 participant