From fbf3e9a74e207baa3584eb28d5b43c1e473c0be1 Mon Sep 17 00:00:00 2001 From: kozyrevdev <73348153+kozyrevdev@users.noreply.github.com> Date: Tue, 23 Nov 2021 09:55:40 +0000 Subject: [PATCH] Merge pull request #237 from UniqueNetwork/feature/CORE-260 CORE-260. Disable scheduller --- --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -771,11 +771,11 @@ type InflationBlockInterval = InflationBlockInterval; } -parameter_types! { - pub MaximumSchedulerWeight: Weight = Perbill::from_percent(50) * - RuntimeBlockWeights::get().max_block; - pub const MaxScheduledPerBlock: u32 = 50; -} +// parameter_types! { +// pub MaximumSchedulerWeight: Weight = Perbill::from_percent(50) * +// RuntimeBlockWeights::get().max_block; +// pub const MaxScheduledPerBlock: u32 = 50; +// } type EvmSponsorshipHandler = ( pallet_nft::NftEthSponsorshipHandler, @@ -787,17 +787,17 @@ pallet_evm_transaction_payment::BridgeSponsorshipHandler, ); -impl pallet_unq_scheduler::Config for Runtime { - type Event = Event; - type Origin = Origin; - type PalletsOrigin = OriginCaller; - type Call = Call; - type MaximumWeight = MaximumSchedulerWeight; - type ScheduleOrigin = EnsureSigned; - type MaxScheduledPerBlock = MaxScheduledPerBlock; - type SponsorshipHandler = SponsorshipHandler; - type WeightInfo = (); -} +// impl pallet_unq_scheduler::Config for Runtime { +// type Event = Event; +// type Origin = Origin; +// type PalletsOrigin = OriginCaller; +// type Call = Call; +// type MaximumWeight = MaximumSchedulerWeight; +// type ScheduleOrigin = EnsureSigned; +// type MaxScheduledPerBlock = MaxScheduledPerBlock; +// type SponsorshipHandler = SponsorshipHandler; +// type WeightInfo = (); +// } impl pallet_evm_transaction_payment::Config for Runtime { type EvmSponsorshipHandler = EvmSponsorshipHandler; @@ -858,7 +858,7 @@ // Unique Pallets Inflation: pallet_inflation::{Pallet, Call, Storage} = 60, Nft: pallet_nft::{Pallet, Call, Storage} = 61, - Scheduler: pallet_unq_scheduler::{Pallet, Call, Storage, Event} = 62, + // Scheduler: pallet_unq_scheduler::{Pallet, Call, Storage, Event} = 62, // free = 63 Charging: pallet_nft_charge_transaction::{Pallet, Call, Storage } = 64, // ContractHelpers: pallet_contract_helpers::{Pallet, Call, Storage} = 65, -- gitstuff