Skip to content

Introduce BlockWeightsForAsyncBacking and MAXIMUM_BLOCK_WEIGHT_FOR_ASYNC_BACKING to bridges primitives#2966

Merged
mrcnski merged 3 commits intomrcnski/enable-async-backing-on-testnet-system-chainsfrom
bko-mrcnski/enable-async-backing-on-testnet-system-chains
Jan 18, 2024
Merged

Introduce BlockWeightsForAsyncBacking and MAXIMUM_BLOCK_WEIGHT_FOR_ASYNC_BACKING to bridges primitives#2966
mrcnski merged 3 commits intomrcnski/enable-async-backing-on-testnet-system-chainsfrom
bko-mrcnski/enable-async-backing-on-testnet-system-chains

Conversation

@bkontur
Copy link
Contributor

@bkontur bkontur commented Jan 17, 2024

@bkontur bkontur requested a review from svyatonik January 17, 2024 15:32
@paritytech-review-bot paritytech-review-bot bot requested a review from a team January 17, 2024 15:32
@svyatonik svyatonik added R0-no-crate-publish-required The change does not require any crates to be re-published. T15-bridges This PR/Issue is related to bridges. labels Jan 18, 2024
@bkontur bkontur requested a review from mrcnski January 18, 2024 06:57
/// We allow for 2 seconds of compute with a 6 second average block.
///
/// This is a copy-paste of system parachain runtimes switched to async backing (https://github.com/paritytech/polkadot-sdk/pull/2949).
const MAXIMUM_BLOCK_WEIGHT_FOR_ASYNC_BACKING: Weight = Weight::from_parts(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes no sense? Either the runtime is running using async backing or not. This means you should update BlockWeights directly.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Runtime's BlockWeights are updated directly in that #2949.

Here we try to keep bridges primitives in sync.
Bridges repo is partially migrated to the polkadot-sdk, the relayer part is missing, and we use these primitives for relayer code also (I will double-check if it is really needed now), that's the reason we have these "duplicite" copies. From time to time, we sync/backport bridges repo with polkadot-sdk.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm okay.

@mrcnski mrcnski merged commit 42f5d1b into mrcnski/enable-async-backing-on-testnet-system-chains Jan 18, 2024
@mrcnski mrcnski deleted the bko-mrcnski/enable-async-backing-on-testnet-system-chains branch January 18, 2024 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

R0-no-crate-publish-required The change does not require any crates to be re-published. T15-bridges This PR/Issue is related to bridges.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants