Skip to content

lookahead collator: only build on top of scheduled relay parents#1429

Merged
slumber merged 4 commits into
masterfrom
slumber-lookahead-on-scheduled-rp
Sep 12, 2023
Merged

lookahead collator: only build on top of scheduled relay parents#1429
slumber merged 4 commits into
masterfrom
slumber-lookahead-on-scheduled-rp

Conversation

@slumber

@slumber slumber commented Sep 6, 2023

Copy link
Copy Markdown
Contributor

Partially addresses #1400

if the parachain is not scheduled
@slumber slumber added the T9-cumulus This PR/Issue is related to cumulus. label Sep 6, 2023
@slumber slumber requested review from rphmeier and sandreim September 6, 2023 14:47
@sandreim

sandreim commented Sep 7, 2023

Copy link
Copy Markdown
Contributor

With async backing enabled, no candidates are backed with this PR and latest Westend(master) runtime.

@sandreim

sandreim commented Sep 7, 2023

Copy link
Copy Markdown
Contributor

With async backing enabled, no candidates are backed with this PR and latest Westend(master) runtime.

Actually I haven't built it with network-protocol-staging and that explains the issue.

Comment thread cumulus/client/consensus/aura/src/collators/lookahead.rs
@paritytech-ci paritytech-ci requested review from a team September 7, 2023 12:08
@sandreim

sandreim commented Sep 7, 2023

Copy link
Copy Markdown
Contributor

Looks good on Versi!

@rphmeier

rphmeier commented Sep 8, 2023

Copy link
Copy Markdown
Contributor

The lookahead collator should only build on chains where all in-scope and off-chain blocks are built on allowed relay-parents.

This PR only does half of the issue.
It changes collators not to build on disallowed relay-parents, but collators will still build on top of blocks which had disallowed relay parents. The parent search would need to be altered in order to fix this.

I'm OK with merging as-is, since an entirely-honest collator set would have no issues. But we should leave #1400 open

@paritytech-cicd-pr

Copy link
Copy Markdown

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-clippy
Logs: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/3659191

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T9-cumulus This PR/Issue is related to cumulus.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants