Add versioning to ParachainHost runtime API (#652)

* add version to ParachainHost API

* better error message
This commit is contained in:
Robert Habermeier authored and Gavin Wood committed 2019-12-04 02:04:03 +01:00
1 parent d80adceea8
commit ab2333da89
2 files changed
+16 -4

No files matched your search

+1
View File
@@ -591,6 +591,7 @@ use runtime_primitives::traits::{Block as BlockT};
sp_api::decl_runtime_apis! {
/// The API for querying the state of parachains on-chain.
#[api_version(2)]
pub trait ParachainHost {
/// Get the current validators.
fn validators() -> Vec<ValidatorId>;