Extend Schedule Pallet for Root Scheduling/Canceling (#5907)

* Add root dispatch to scheduler

* Move encode operation upwards

* fix benchmark

* extend extrinsics

* add some clarifying comments

* start to add benchmarking

* finish weights

* remove double encode

* bump spec

* Update weights

* more accurate weights

* bump base weight
This commit is contained in:
Shawn Tabrizi authored and GitHub committed 2020-05-07 11:47:23 +02:00
1 parent a9523dbc37
commit d8b7520a90
8 files changed
+435 -78

No files matched your search

@@ -69,7 +69,7 @@ fn add_referendum<T: Trait>(n: u32) -> Result<ReferendumIndex, &'static str> {
);
let referendum_index: ReferendumIndex = ReferendumCount::get() - 1;
let _ = T::Scheduler::schedule_named(
(DEMOCRACY_ID, referendum_index),
(DEMOCRACY_ID, referendum_index).encode(),
0.into(),
None,
63,