Kagome
Polkadot Runtime Engine in C++17
|
#include <grandpa_api.hpp>
Public Member Functions | |
GrandpaApiImpl (std::shared_ptr< blockchain::BlockHeaderRepository > block_header_repo, std::shared_ptr< Executor > executor) | |
outcome::result< std::optional< ScheduledChange > > | pending_change (primitives::BlockHash const &block, const Digest &digest) override |
calls Grandpa_pending_change runtime api function, which checks a digest for pending changes. More... | |
outcome::result< std::optional< ForcedChange > > | forced_change (primitives::BlockHash const &block, const Digest &digest) override |
calls Grandpa_forced_change runtime api function which checks a digest for forced changes More... | |
outcome::result< AuthorityList > | authorities (const primitives::BlockId &block_id) override |
calls Grandpa_authorities runtime api function More... | |
outcome::result< primitives::AuthoritySetId > | current_set_id (const primitives::BlockHash &block) override |
Public Member Functions inherited from kagome::runtime::GrandpaApi | |
virtual | ~GrandpaApi ()=default |
Private Attributes | |
std::shared_ptr< blockchain::BlockHeaderRepository > | block_header_repo_ |
std::shared_ptr< Executor > | executor_ |
Additional Inherited Members | |
Protected Types inherited from kagome::runtime::GrandpaApi | |
using | Digest = primitives::Digest |
using | ScheduledChange = primitives::ScheduledChange |
using | BlockNumber = primitives::BlockNumber |
using | AuthorityList = primitives::AuthorityList |
using | ForcedChange = primitives::ForcedChange |
using | BlockId = primitives::BlockId |
Definition at line 17 of file grandpa_api.hpp.
kagome::runtime::GrandpaApiImpl::GrandpaApiImpl | ( | std::shared_ptr< blockchain::BlockHeaderRepository > | block_header_repo, |
std::shared_ptr< Executor > | executor | ||
) |
Definition at line 12 of file grandpa_api.cpp.
|
overridevirtual |
calls Grandpa_authorities runtime api function
Implements kagome::runtime::GrandpaApi.
Definition at line 35 of file grandpa_api.cpp.
|
overridevirtual |
Implements kagome::runtime::GrandpaApi.
Definition at line 42 of file grandpa_api.cpp.
|
overridevirtual |
calls Grandpa_forced_change runtime api function which checks a digest for forced changes
digest | digest to check |
Implements kagome::runtime::GrandpaApi.
Definition at line 29 of file grandpa_api.cpp.
|
overridevirtual |
calls Grandpa_pending_change runtime api function, which checks a digest for pending changes.
digest | digest to check |
Implements kagome::runtime::GrandpaApi.
Definition at line 22 of file grandpa_api.cpp.
|
private |
Definition at line 36 of file grandpa_api.hpp.
|
private |
Definition at line 37 of file grandpa_api.hpp.