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

Introduce BlockWeightsForAsyncBacking and MAXIMUM_BLOCK_WEIGHT_FOR_ASYNC_BACKING to bridges primitives #2966

Conversation

bkontur
Copy link
Contributor

@bkontur bkontur commented Jan 17, 2024

@paritytech-review-bot paritytech-review-bot bot requested a review from a team January 17, 2024 15:32
@svyatonik svyatonik added R0-silent Changes should not be mentioned in any release notes 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
134 of 138 checks passed
@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-silent Changes should not be mentioned in any release notes T15-bridges This PR/Issue is related to bridges.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants