--- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -145,12 +145,9 @@ pub const MaximumBlockWeight: Weight = 2 * WEIGHT_PER_SECOND; pub const AvailableBlockRatio: Perbill = Perbill::from_percent(75); /// Assume 10% of weight for average on_initialize calls. - // pub MaximumExtrinsicWeight: Weight = AvailableBlockRatio::get() - // .saturating_sub(Perbill::from_percent(10)) * MaximumBlockWeight::get(); - - pub MaximumExtrinsicWeight: Weight = 4_294_967_295; - //pub const MaximumBlockLength: u32 = 5 * 1024 * 1024; - pub const MaximumBlockLength: u32 = 4_294_967_295; + pub MaximumExtrinsicWeight: Weight = AvailableBlockRatio::get() + .saturating_sub(Perbill::from_percent(10)) * MaximumBlockWeight::get(); + pub const MaximumBlockLength: u32 = 5 * 1024 * 1024; pub const Version: RuntimeVersion = VERSION; }