Backport changes from polkadot-sdk (#2588)

* backport https://github.com/paritytech/polkadot-sdk/pull/1543

* another backport
This commit is contained in:
Svyatoslav Nikolsky
2023-09-28 14:36:10 +03:00
committed by Bastian Köcher
parent 59e433750a
commit 4dc99c4602
2 changed files with 1 additions and 2 deletions
@@ -52,7 +52,7 @@ pub const NORMAL_DISPATCH_RATIO: Perbill = Perbill::from_percent(75);
/// This is a copy-paste from the cumulus repo's `parachains-common` crate. /// This is a copy-paste from the cumulus repo's `parachains-common` crate.
const MAXIMUM_BLOCK_WEIGHT: Weight = Weight::from_parts(constants::WEIGHT_REF_TIME_PER_SECOND, 0) const MAXIMUM_BLOCK_WEIGHT: Weight = Weight::from_parts(constants::WEIGHT_REF_TIME_PER_SECOND, 0)
.saturating_div(2) .saturating_div(2)
.set_proof_size(polkadot_primitives::v5::MAX_POV_SIZE as u64); .set_proof_size(polkadot_primitives::MAX_POV_SIZE as u64);
/// All cumulus bridge hubs assume that about 5 percent of the block weight is consumed by /// All cumulus bridge hubs assume that about 5 percent of the block weight is consumed by
/// `on_initialize` handlers. This is used to limit the maximal weight of a single extrinsic. /// `on_initialize` handlers. This is used to limit the maximal weight of a single extrinsic.
-1
View File
@@ -4,7 +4,6 @@ version = "0.1.0"
authors.workspace = true authors.workspace = true
edition.workspace = true edition.workspace = true
license = "GPL-3.0-or-later WITH Classpath-exception-2.0" license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
publish = false
[dependencies] [dependencies]
bp-header-chain = { path = "../header-chain", default-features = false } bp-header-chain = { path = "../header-chain", default-features = false }