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:
ParthandParity authored and GitHub committed 2021-02-23 13:49:46 -06:00
1 parent eb09db2aef
commit 3c4ed7b234
2 files changed
+24 -2

No files matched your search

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