From 4741769246769f74cff1b65d976f324ae6cc247b Mon Sep 17 00:00:00 2001 From: str-mv Date: Thu, 29 Oct 2020 14:53:30 +0000 Subject: [PATCH] Default weigths variables returned --- --- 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; } -- gitstuff