collator-side: send parent head data (#3521)

On top of #3302.

We want the validators to upgrade first before we add changes to the
collation side to send the new variants, which is why this part is
extracted into a separate PR.

The detection of when to send the parent head is based on the core
assignments at the relay parent of the candidate. We probably want to
make it more flexible in the future, but for now, it will work for a
simple use case when a para always has multiple cores assigned to it.

---------

Signed-off-by: Matteo Muraca <mmuraca247@gmail.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Matteo Muraca <56828990+muraca@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Juan Ignacio Rios <54085674+JuaniRios@users.noreply.github.com>
Co-authored-by: Branislav Kontur <bkontur@gmail.com>
Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
authored and GitHub committed 2024-03-19 15:01:26 +00:00
1 parent 923f27ccab
commit 5fd72a1f5e
9 files changed
+222 -47

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
title: Collator side changes for elastic scaling
doc:
- audience: Node Dev
description: |
Parachain teams wishing to utilize the benefits of
elastic scaling will need to upgrade their collator
code to include these changes.
crates:
- name: polkadot-collator-protocol
bump: minor