Override RuntimeApi::authorities() to include past sessions (#2494)

* override authorities runtime call

* addressing feedback

* addressing feedback and restoring semantics

* updated helper function

* naming convention + comment

Co-authored-by: Parity <parity2305@gmail.com>
This commit is contained in:
Parth
2021-02-24 01:19:46 +05:30
committed by GitHub
parent eb09db2aef
commit 3c4ed7b234
2 changed files with 24 additions and 2 deletions
+1 -1
View File
@@ -849,7 +849,7 @@ sp_api::impl_runtime_apis! {
impl authority_discovery_primitives::AuthorityDiscoveryApi<Block> for Runtime {
fn authorities() -> Vec<AuthorityDiscoveryId> {
AuthorityDiscovery::authorities()
runtime_api_impl::relevant_authority_ids::<Runtime>()
}
}