WeightInfo for Scheduler (#7138)

* initial scheduler stuff

* integrate weightinfo

* Update pallet_scheduler.rs
This commit is contained in:
Shawn Tabrizi authored and GitHub committed 2020-09-18 14:15:40 +00:00
1 parent 2c5a82f8f1
commit 743cf7543b
7 files changed
+148 -28

No files matched your search

+3 -1
View File
@@ -273,6 +273,7 @@ impl pallet_proxy::Trait for Runtime {
parameter_types! {
pub MaximumSchedulerWeight: Weight = Perbill::from_percent(80) * MaximumBlockWeight::get();
pub const MaxScheduledPerBlock: u32 = 50;
}
impl pallet_scheduler::Trait for Runtime {
@@ -282,7 +283,8 @@ impl pallet_scheduler::Trait for Runtime {
type Call = Call;
type MaximumWeight = MaximumSchedulerWeight;
type ScheduleOrigin = EnsureRoot<AccountId>;
type WeightInfo = ();
type MaxScheduledPerBlock = MaxScheduledPerBlock;
type WeightInfo = weights::pallet_scheduler::WeightInfo;
}
parameter_types! {