Root origin use no filter by default. Scheduler and Democracy dispatch without asserting BaseCallFilter (#6408)

* make system root origin build runtime origin with no filter

* additional doc
This commit is contained in:
Guillaume Thiolliere
2020-06-19 15:59:29 +02:00
committed by GitHub
parent 2645659ab2
commit 780f8e09d7
4 changed files with 55 additions and 10 deletions
+2 -1
View File
@@ -149,7 +149,8 @@ pub fn extrinsics_data_root<H: Hash>(xts: Vec<Vec<u8>>) -> H::Output {
}
pub trait Trait: 'static + Eq + Clone {
/// The basic call filter to use in Origin.
/// The basic call filter to use in Origin. All origins are built with this filter as base,
/// except Root.
type BaseCallFilter: Filter<Self::Call>;
/// The `Origin` type used by dispatchable calls.