omni-node: Adjust manual seal parameters (#7451)
This PR will make omni-node dev-mode once again compatible with older
runtimes.
The changes introduced in
https://github.com/paritytech/polkadot-sdk/pull/6825 changed constraints
that are enforced in the runtime. For normal chains this should work
fine, since we have real parameters there, like relay chain slots and
parachain slots.
For these manual seal parameters we need to respect the constraints,
while faking all the parameters. This PR should fix manual seal in
omni-node to work with runtime build before and after
https://github.com/paritytech/polkadot-sdk/pull/6825 (I tested that).
In the future, we should look into improving the parameterization here,
possibly by introducing proper aura pre-digests so that the parachain
slot moves forward. This will require quite a bit of refactoring on the
manual seal node side however. Issue:
https://github.com/paritytech/polkadot-sdk/issues/7453
Also, the dev chain spec in parachain template is updated. This makes it
work with stable2412-1 and master omni-node. Once the changes here are
backported and in a release, all combinations will work again.
fixes https://github.com/paritytech/polkadot-sdk/issues/7341
---------
Co-authored-by:
cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
parent
31abe611
Showing
- cumulus/polkadot-omni-node/lib/src/nodes/manual_seal.rs 22 additions, 11 deletionscumulus/polkadot-omni-node/lib/src/nodes/manual_seal.rs
- prdoc/pr_7451.prdoc 8 additions, 0 deletionsprdoc/pr_7451.prdoc
- templates/parachain/dev_chain_spec.json 1 addition, 1 deletiontemplates/parachain/dev_chain_spec.json
Please register or sign in to comment