Companion PR for #7138 (WeightInfo for Scheduler) (#1734)

* Update scheduler from substrate

* "Update Substrate"

Co-authored-by: parity-processbot <>
This commit is contained in:
Shawn Tabrizi
2020-09-18 20:11:57 +02:00
committed by GitHub
parent a0acc6793b
commit 872f41710f
10 changed files with 304 additions and 137 deletions
+6 -1
View File
@@ -152,6 +152,10 @@ impl frame_system::Trait for Runtime {
type SystemWeightInfo = weights::frame_system::WeightInfo;
}
parameter_types! {
pub const MaxScheduledPerBlock: u32 = 50;
}
impl pallet_scheduler::Trait for Runtime {
type Event = Event;
type Origin = Origin;
@@ -159,7 +163,8 @@ impl pallet_scheduler::Trait for Runtime {
type Call = Call;
type MaximumWeight = MaximumBlockWeight;
type ScheduleOrigin = EnsureRoot<AccountId>;
type WeightInfo = ();
type MaxScheduledPerBlock = MaxScheduledPerBlock;
type WeightInfo = weights::pallet_scheduler::WeightInfo;
}
parameter_types! {