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_IMPL_AUTHORITY_DISCOVERY_API_HPP
7 #define KAGOME_RUNTIME_RUNTIME_API_IMPL_AUTHORITY_DISCOVERY_API_HPP
8 
10 
11 namespace kagome::runtime {
12  class Executor;
13 
15  public:
16  explicit AuthorityDiscoveryApiImpl(std::shared_ptr<Executor> executor);
17 
18  outcome::result<std::vector<primitives::AuthorityDiscoveryId>> authorities(
19  const primitives::BlockHash &block) override;
20 
21  private:
22  std::shared_ptr<Executor> executor_;
23  };
24 } // namespace kagome::runtime
25 
26 #endif // KAGOME_RUNTIME_RUNTIME_API_IMPL_AUTHORITY_DISCOVERY_API_HPP
outcome::result< std::vector< primitives::AuthorityDiscoveryId > > authorities(const primitives::BlockHash &block) override
AuthorityDiscoveryApiImpl(std::shared_ptr< Executor > executor)