Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove non-async backing code from node #4447

Closed
alindima opened this issue May 13, 2024 · 2 comments
Closed

Remove non-async backing code from node #4447

alindima opened this issue May 13, 2024 · 2 comments
Assignees
Labels
I4-refactor Code needs refactoring. T8-polkadot This PR/Issue is related to/affects the Polkadot network.

Comments

@alindima
Copy link
Contributor

Now that async backing has been successfully enabled on all networks, we could remove a lot of code that dealt with async backing not being present (the AsyncBackingParams runtime API not being present). The runtime API is actually the trigger for the node subsystems (not the actual values of the params).
If sync backing is desired, one may still use zeroed AsyncBackingParams.

Some subsystems which explicitly dealt with this: collator-protocol, backing, provisioner.

I believe we may also remove the legacy statement-distribution subsystem

@alindima alindima added I4-refactor Code needs refactoring. T8-polkadot This PR/Issue is related to/affects the Polkadot network. labels May 13, 2024
@sandreim
Copy link
Contributor

We should also remove validation protocol version 1.

@alindima alindima self-assigned this Jan 17, 2025
github-merge-queue bot pushed a commit that referenced this issue Feb 3, 2025
Part of #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
#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>
@alindima
Copy link
Contributor Author

alindima commented Feb 4, 2025

This was resolved in #7254, except for removing the legacy statement-distribution, which is tracked by #7410

@alindima alindima closed this as completed Feb 4, 2025
@github-project-automation github-project-automation bot moved this from Backlog to Completed in parachains team board Feb 4, 2025
Ank4n pushed a commit that referenced this issue Feb 6, 2025
Part of #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
#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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I4-refactor Code needs refactoring. T8-polkadot This PR/Issue is related to/affects the Polkadot network.
Projects
Status: Completed
Development

No branches or pull requests

2 participants