Kagome
Polkadot Runtime Engine in C++17
authority_discovery_api.cpp
Go to the documentation of this file.
1 
7 
9 
10 namespace kagome::runtime {
12  std::shared_ptr<Executor> executor)
13  : executor_{std::move(executor)} {
14  BOOST_ASSERT(executor_);
15  }
16 
17  outcome::result<std::vector<primitives::AuthorityDiscoveryId>>
19  return executor_->callAt<std::vector<primitives::AuthorityDiscoveryId>>(
20  block, "AuthorityDiscoveryApi_authorities");
21  }
22 } // namespace kagome::runtime
outcome::result< std::vector< primitives::AuthorityDiscoveryId > > authorities(const primitives::BlockHash &block) override
AuthorityDiscoveryApiImpl(std::shared_ptr< Executor > executor)