Fix Max Block Weight (#501)

* fix max block weight

* fix milli per block too
This commit is contained in:
Shawn Tabrizi
2021-06-19 13:47:05 +01:00
committed by GitHub
parent 0027f5e248
commit 12a2b28541
3 changed files with 7 additions and 7 deletions
@@ -119,8 +119,8 @@ const AVERAGE_ON_INITIALIZE_RATIO: Perbill = Perbill::from_percent(10);
/// We allow `Normal` extrinsics to fill up the block up to 75%, the rest can be used
/// by Operational extrinsics.
const NORMAL_DISPATCH_RATIO: Perbill = Perbill::from_percent(75);
/// We allow for 2 seconds of compute with a 6 second average block time.
const MAXIMUM_BLOCK_WEIGHT: Weight = 2 * WEIGHT_PER_SECOND;
/// We allow for .5 seconds of compute with a 12 second average block time.
const MAXIMUM_BLOCK_WEIGHT: Weight = WEIGHT_PER_SECOND / 2;
parameter_types! {
pub const BlockHashCount: BlockNumber = 250;