Kagome
Polkadot Runtime Engine in C++17
babe_api.cpp
Go to the documentation of this file.
1 
7 
9 
10 namespace kagome::runtime {
11 
12  BabeApiImpl::BabeApiImpl(std::shared_ptr<Executor> executor)
13  : executor_{std::move(executor)} {
14  BOOST_ASSERT(executor_);
15  }
16 
17  outcome::result<primitives::BabeConfiguration> BabeApiImpl::configuration(
18  primitives::BlockHash const &block) {
20  block, "BabeApi_configuration");
21  }
22 
23 } // namespace kagome::runtime
Configuration data used by the BABE consensus engine.
std::shared_ptr< Executor > executor_
Definition: babe_api.hpp:23
BabeApiImpl(std::shared_ptr< Executor > executor)
Definition: babe_api.cpp:12
outcome::result< primitives::BabeConfiguration > configuration(primitives::BlockHash const &block) override
Definition: babe_api.cpp:17