1use up_common::constants::{MAXIMUM_BLOCK_WEIGHT, NORMAL_DISPATCH_RATIO};23use super::*;45parameter_types! {6 pub MaximumSchedulerWeight: Weight = Perbill::from_percent(80) *7 <Runtime as frame_system::Config>::BlockWeights::get()8 .per_class.get(frame_support::pallet_prelude::DispatchClass::Normal).max_total9 .unwrap_or(NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT);10 pub MaxScheduledPerBlock: u32 = 50;11}1213impl pallet_scheduler::Config for Runtime {14 type RuntimeOrigin = RuntimeOrigin;15 type RuntimeEvent = RuntimeEvent;16 type PalletsOrigin = OriginCaller;17 type RuntimeCall = RuntimeCall;18 type MaximumWeight = MaximumSchedulerWeight;19 type ScheduleOrigin = EnsureRoot<AccountId>;20 type MaxScheduledPerBlock = MaxScheduledPerBlock;21 type WeightInfo = pallet_scheduler::weights::SubstrateWeight<Runtime>;22 type OriginPrivilegeCmp = EqualPrivilegeOnly;23 type Preimages = Preimage;24}