Skip to content

Commit b71b92e

Browse files
xlcDaanvdplas
authored andcommitted
add Treasurer to SchedulerOrigin (#1325)
1 parent 431caac commit b71b92e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

polkadot/runtime/kusama/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ impl pallet_scheduler::Config for Runtime {
228228
type MaximumWeight = MaximumSchedulerWeight;
229229
// The goal of having ScheduleOrigin include AuctionAdmin is to allow the auctions track of
230230
// OpenGov to schedule periodic auctions.
231-
type ScheduleOrigin = EitherOf<EnsureRoot<AccountId>, AuctionAdmin>;
231+
// Also allow Treasurer to schedule recurring payments.
232+
type ScheduleOrigin = EitherOf<EitherOf<EnsureRoot<AccountId>, AuctionAdmin>, Treasurer>;
232233
type MaxScheduledPerBlock = MaxScheduledPerBlock;
233234
type WeightInfo = weights::pallet_scheduler::WeightInfo<Runtime>;
234235
type OriginPrivilegeCmp = OriginPrivilegeCmp;

polkadot/runtime/polkadot/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ impl pallet_scheduler::Config for Runtime {
212212
type MaximumWeight = MaximumSchedulerWeight;
213213
// The goal of having ScheduleOrigin include AuctionAdmin is to allow the auctions track of
214214
// OpenGov to schedule periodic auctions.
215-
type ScheduleOrigin = EitherOf<EnsureRoot<AccountId>, AuctionAdmin>;
215+
// Also allow Treasurer to schedule recurring payments.
216+
type ScheduleOrigin = EitherOf<EitherOf<EnsureRoot<AccountId>, AuctionAdmin>, Treasurer>;
216217
type MaxScheduledPerBlock = MaxScheduledPerBlock;
217218
type WeightInfo = weights::pallet_scheduler::WeightInfo<Runtime>;
218219
type OriginPrivilegeCmp = OriginPrivilegeCmp;

0 commit comments

Comments
 (0)