Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
polkadot
Commits
ce4d4a9a
Unverified
Commit
ce4d4a9a
authored
Jun 17, 2021
by
Shawn Tabrizi
Committed by
GitHub
Jun 17, 2021
Browse files
Allow Council to Use Scheduler (#3237)
* Allow council to use scheduler * westend doesnt have council
parent
d0ae2a52
Pipeline
#142783
passed with stages
in 37 minutes and 56 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
runtime/kusama/src/lib.rs
View file @
ce4d4a9a
...
...
@@ -200,13 +200,19 @@ parameter_types! {
pub
const
MaxScheduledPerBlock
:
u32
=
50
;
}
type
ScheduleOrigin
=
EnsureOneOf
<
AccountId
,
EnsureRoot
<
AccountId
>
,
pallet_collective
::
EnsureProportionAtLeast
<
_1
,
_2
,
AccountId
,
CouncilCollective
>
>
;
impl
pallet_scheduler
::
Config
for
Runtime
{
type
Event
=
Event
;
type
Origin
=
Origin
;
type
PalletsOrigin
=
OriginCaller
;
type
Call
=
Call
;
type
MaximumWeight
=
MaximumSchedulerWeight
;
type
ScheduleOrigin
=
EnsureRoot
<
AccountId
>
;
type
ScheduleOrigin
=
ScheduleOrigin
;
type
MaxScheduledPerBlock
=
MaxScheduledPerBlock
;
type
WeightInfo
=
weights
::
pallet_scheduler
::
WeightInfo
<
Runtime
>
;
}
...
...
runtime/polkadot/src/lib.rs
View file @
ce4d4a9a
...
...
@@ -184,13 +184,19 @@ parameter_types! {
pub
const
MaxScheduledPerBlock
:
u32
=
50
;
}
type
ScheduleOrigin
=
EnsureOneOf
<
AccountId
,
EnsureRoot
<
AccountId
>
,
pallet_collective
::
EnsureProportionAtLeast
<
_1
,
_2
,
AccountId
,
CouncilCollective
>
>
;
impl
pallet_scheduler
::
Config
for
Runtime
{
type
Event
=
Event
;
type
Origin
=
Origin
;
type
PalletsOrigin
=
OriginCaller
;
type
Call
=
Call
;
type
MaximumWeight
=
MaximumSchedulerWeight
;
type
ScheduleOrigin
=
EnsureRoot
<
AccountId
>
;
type
ScheduleOrigin
=
ScheduleOrigin
;
type
MaxScheduledPerBlock
=
MaxScheduledPerBlock
;
type
WeightInfo
=
weights
::
pallet_scheduler
::
WeightInfo
<
Runtime
>
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment