extend on_initialize time ratio for safer block production
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
This commit is contained in:
parent
3d2d905629
commit
2180d1c85b
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "runtime-common"
|
name = "runtime-common"
|
||||||
version = "0.4.8"
|
version = "0.4.9"
|
||||||
authors.workspace = true
|
authors.workspace = true
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
homepage.workspace = true
|
homepage.workspace = true
|
||||||
|
|||||||
@ -30,14 +30,14 @@ pub use sp_runtime::BuildStorage;
|
|||||||
|
|
||||||
pub use impls::ToAuthor;
|
pub use impls::ToAuthor;
|
||||||
|
|
||||||
/// We assume that an on-initialize consumes 10% of the weight on average, hence
|
/// We assume that an on-initialize consumes 15% of the weight on average, hence
|
||||||
/// a single extrinsic will not be allowed to consume more than
|
/// a single extrinsic will not be allowed to consume more than
|
||||||
/// `AvailableBlockRatio - 10%`.
|
/// `AvailableBlockRatio - 15%`.
|
||||||
pub const AVERAGE_ON_INITIALIZE_RATIO: Perbill = Perbill::from_percent(10);
|
pub const AVERAGE_ON_INITIALIZE_RATIO: Perbill = Perbill::from_percent(15);
|
||||||
|
|
||||||
/// We allow `Normal` extrinsics to fill up the block up to 75%, the rest can
|
/// We allow `Normal` extrinsics to fill up the block up to 70%, the rest can
|
||||||
/// be used by `Operational` extrinsics.
|
/// be used by `Operational` extrinsics.
|
||||||
pub const NORMAL_DISPATCH_RATIO: Perbill = Perbill::from_percent(75);
|
pub const NORMAL_DISPATCH_RATIO: Perbill = Perbill::from_percent(70);
|
||||||
|
|
||||||
/// We allow for 4 seconds of compute with a 12 seconds average block time.
|
/// We allow for 4 seconds of compute with a 12 seconds average block time.
|
||||||
/// The storage proof size is not limited so far.
|
/// The storage proof size is not limited so far.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user