collation-generation: Avoid using para_backing_state if runtime is ancient (#4070)

fixes https://github.com/paritytech/polkadot-sdk/issues/4067

Also add an early bail out for look ahead collator such that we don't
waste time if a CollatorFn is not set.

TODO:
- [x] add test.
- [x] Polkadot System Parachain burn-in.

---------

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
This commit is contained in:
Andrei Sandu
2024-04-11 13:36:30 +03:00
committed by GitHub
parent 69cc7f2090
commit 9ede4152ef
3 changed files with 135 additions and 38 deletions
+12
View File
@@ -0,0 +1,12 @@
# Schema: Polkadot SDK PRDoc Schema (prdoc) v1.0.0
# See doc at https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/prdoc/schema_user.json
title: Avoid using `para_backing_state` if runtime doesn't support async backing
doc:
- audience: Node Operator
description: |
Fixes https://github.com/paritytech/polkadot-sdk/issues/4067 which prevents collators to
upgrade to latest release (v1.10.0)
crates: [ ]