Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
authority_discovery_api.cpp
Go to the documentation of this file.
1
6
#include "
runtime/runtime_api/impl/authority_discovery_api.hpp
"
7
8
#include "
runtime/common/executor.hpp
"
9
10
namespace
kagome::runtime
{
11
AuthorityDiscoveryApiImpl::AuthorityDiscoveryApiImpl
(
12
std::shared_ptr<Executor> executor)
13
: executor_{std::move(executor)} {
14
BOOST_ASSERT(
executor_
);
15
}
16
17
outcome::result<std::vector<primitives::AuthorityDiscoveryId>>
18
AuthorityDiscoveryApiImpl::authorities
(
const
primitives::BlockHash
&block) {
19
return
executor_
->callAt<std::vector<primitives::AuthorityDiscoveryId>>(
20
block,
"AuthorityDiscoveryApi_authorities"
);
21
}
22
}
// namespace kagome::runtime
kagome::runtime::AuthorityDiscoveryApiImpl::executor_
std::shared_ptr< Executor > executor_
Definition:
authority_discovery_api.hpp:22
authority_discovery_api.hpp
executor.hpp
kagome::runtime::AuthorityDiscoveryApiImpl::authorities
outcome::result< std::vector< primitives::AuthorityDiscoveryId > > authorities(const primitives::BlockHash &block) override
Definition:
authority_discovery_api.cpp:18
kagome::common::Blob< 32 >
kagome::runtime
Definition:
author_api_impl.hpp:43
kagome::runtime::AuthorityDiscoveryApiImpl::AuthorityDiscoveryApiImpl
AuthorityDiscoveryApiImpl(std::shared_ptr< Executor > executor)
Definition:
authority_discovery_api.cpp:11
core
runtime
runtime_api
impl
authority_discovery_api.cpp
Generated by
1.8.11