Kagome
Polkadot Runtime Engine in C++17
authority_discovery_api.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_RUNTIME_RUNTIME_API_AUTHORITY_DISCOVERY_API_HPP
7 #define KAGOME_RUNTIME_RUNTIME_API_AUTHORITY_DISCOVERY_API_HPP
8 
10 #include "primitives/block_id.hpp"
11 
12 namespace kagome::runtime {
13 
15  public:
16  virtual ~AuthorityDiscoveryApi() = default;
17 
18  virtual outcome::result<std::vector<primitives::AuthorityDiscoveryId>>
19  authorities(const primitives::BlockHash &block) = 0;
20  };
21 } // namespace kagome::runtime
22 
23 #endif // KAGOME_RUNTIME_RUNTIME_API_AUTHORITY_DISCOVERY_API_HPP
virtual outcome::result< std::vector< primitives::AuthorityDiscoveryId > > authorities(const primitives::BlockHash &block)=0