deprecate AsyncBackingParams (#7254)
Part of https://github.com/paritytech/polkadot-sdk/issues/5079.
Removes all usage of the static async backing params, replacing them
with dynamically computed equivalent values (based on the claim queue
and scheduling lookahead).
Adds a new runtime API for querying the scheduling lookahead value. If
not present, falls back to 3 (the default value that is backwards
compatible with values we have on production networks for
allowed_ancestry_len)
Also resolves most of
https://github.com/paritytech/polkadot-sdk/issues/4447, removing code
that handles async backing not yet being enabled.
While doing this, I removed the support for collation protocol version 1
on collators, as it only worked for leaves not supporting async backing
(which are none).
I also unhooked the legacy v1 statement-distribution (for the same
reason as above). That subsystem is basically dead code now, so I had to
remove some of its tests as they would no longer pass (since the
subsystem no longer sends messages to the legacy variant). I did not
remove the entire legacy subsystem yet, as that would pollute this PR
too much. We can remove the entire v1 and v2 validation protocols in a
follow up PR.
In another PR: remove test files with names `prospective_parachains`
(it'd pollute this PR if we do now)
TODO:
- [x] add deprecation warnings
- [x] prdoc
---------
Co-authored-by:
cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
parent
d283ad0c
Pipeline
#514015
waiting for manual action
with stages
in
44 minutes and 39 seconds
Stage:
Stage:
Stage:
Stage:
Stage:
Showing
- cumulus/client/consensus/aura/src/collators/mod.rs 37 additions, 20 deletionscumulus/client/consensus/aura/src/collators/mod.rs
- cumulus/client/consensus/common/src/tests.rs 4 additions, 0 deletionscumulus/client/consensus/common/src/tests.rs
- cumulus/client/network/src/tests.rs 4 additions, 0 deletionscumulus/client/network/src/tests.rs
- cumulus/client/pov-recovery/src/tests.rs 4 additions, 0 deletionscumulus/client/pov-recovery/src/tests.rs
- cumulus/client/relay-chain-inprocess-interface/src/lib.rs 4 additions, 0 deletionscumulus/client/relay-chain-inprocess-interface/src/lib.rs
- cumulus/client/relay-chain-interface/src/lib.rs 7 additions, 0 deletionscumulus/client/relay-chain-interface/src/lib.rs
- cumulus/client/relay-chain-minimal-node/src/blockchain_rpc_client.rs 4 additions, 0 deletions...ent/relay-chain-minimal-node/src/blockchain_rpc_client.rs
- cumulus/client/relay-chain-rpc-interface/src/lib.rs 4 additions, 0 deletionscumulus/client/relay-chain-rpc-interface/src/lib.rs
- cumulus/client/relay-chain-rpc-interface/src/rpc_client.rs 8 additions, 0 deletionscumulus/client/relay-chain-rpc-interface/src/rpc_client.rs
- cumulus/zombienet/tests/0008-elastic_authoring.toml 0 additions, 4 deletionscumulus/zombienet/tests/0008-elastic_authoring.toml
- cumulus/zombienet/tests/0009-elastic_pov_recovery.toml 0 additions, 4 deletionscumulus/zombienet/tests/0009-elastic_pov_recovery.toml
- polkadot/node/core/candidate-validation/src/lib.rs 96 additions, 80 deletionspolkadot/node/core/candidate-validation/src/lib.rs
- polkadot/node/core/candidate-validation/src/tests.rs 76 additions, 128 deletionspolkadot/node/core/candidate-validation/src/tests.rs
- polkadot/node/core/prospective-parachains/src/fragment_chain/mod.rs 12 additions, 14 deletions...ode/core/prospective-parachains/src/fragment_chain/mod.rs
- polkadot/node/core/prospective-parachains/src/fragment_chain/tests.rs 42 additions, 21 deletions...e/core/prospective-parachains/src/fragment_chain/tests.rs
- polkadot/node/core/prospective-parachains/src/lib.rs 25 additions, 82 deletionspolkadot/node/core/prospective-parachains/src/lib.rs
- polkadot/node/core/prospective-parachains/src/tests.rs 105 additions, 290 deletionspolkadot/node/core/prospective-parachains/src/tests.rs
- polkadot/node/core/provisioner/src/disputes/prioritized_selection/tests.rs 2 additions, 2 deletions...e/provisioner/src/disputes/prioritized_selection/tests.rs
- polkadot/node/core/provisioner/src/lib.rs 31 additions, 202 deletionspolkadot/node/core/provisioner/src/lib.rs
- polkadot/node/core/provisioner/src/tests.rs 47 additions, 242 deletionspolkadot/node/core/provisioner/src/tests.rs
Please register or sign in to comment