sudo_queue_downward_message (#1941)

* Add a sudo wrapper for Dmp::queue_downward_message

* Apply suggestions from code review

Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com>

* Stylistic changes

* Remove trailing whitespaces

Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com>
This commit is contained in:
Sergei Shulepov
2020-11-16 16:36:38 +01:00
committed by GitHub
parent c69e5766db
commit 2a25eacb22
2 changed files with 31 additions and 5 deletions
+1 -1
View File
@@ -542,7 +542,7 @@ impl<T: Trait> Module<T> {
}
/// Returns whether the given ID refers to a valid para.
pub(crate) fn is_valid_para(id: ParaId) -> bool {
pub fn is_valid_para(id: ParaId) -> bool {
Self::parachains().binary_search(&id).is_ok()
|| Self::is_parathread(id)
}