Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Introduce OriginPrivilegeCmp (#4166)
Browse files Browse the repository at this point in the history
* Introduce `OriginPrivilegeCmp`

Make use of the new `OriginPrivilegeCmp` feature of pallet scheduler.
The idea is to make sure that a council origin with more yes votes has
higher privileges than a council origin with less yes votes. This solves
a problem that happened recently on Kusama where the council tried to
cancel a scheduled task, but that required that the same council origin
was used while the cancel motion had more yes votes than the origin
motion that scheduled this task. With this origin privilege compare it
should now be solved by checking the yes votes directly.

* Feedback

* update lockfile for substrate

Co-authored-by: parity-processbot <>
  • Loading branch information
bkchr authored and emostov committed Nov 1, 2021
1 parent a226cd6 commit 6e2404d
Show file tree
Hide file tree
Showing 4 changed files with 221 additions and 167 deletions.
Loading

0 comments on commit 6e2404d

Please sign in to comment.