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 ShulepovandPeter Goodspeed-Niklaus authored and GitHub committed 2020-11-16 16:36:38 +01:00
1 parent c69e5766db
commit 2a25eacb22
2 files changed
+31 -5

No files matched your search

+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)
}