mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-01 16:31:07 +00:00
WeightInfo for Scheduler (#7138)
* initial scheduler stuff * integrate weightinfo * Update pallet_scheduler.rs
This commit is contained in:
1 parent
2c5a82f8f1
commit
743cf7543b
7 files changed
+148
-28
No files matched your search
@@ -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! {
|
||||
|
||||
Reference in new issue
Block a user