6 #ifndef KAGOME_RUNTIME_IMPL_GRANDPAAPI 7 #define KAGOME_RUNTIME_IMPL_GRANDPAAPI 20 std::shared_ptr<blockchain::BlockHeaderRepository> block_header_repo,
21 std::shared_ptr<Executor> executor);
42 #endif // KAGOME_RUNTIME_GRANDPAAPI GrandpaApiImpl(std::shared_ptr< blockchain::BlockHeaderRepository > block_header_repo, std::shared_ptr< Executor > executor)
std::shared_ptr< Executor > executor_
outcome::result< AuthorityList > authorities(const primitives::BlockId &block_id) override
calls Grandpa_authorities runtime api function
outcome::result< primitives::AuthoritySetId > current_set_id(const primitives::BlockHash &block) override
interface for Grandpa runtime functions
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...
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 ...
std::shared_ptr< blockchain::BlockHeaderRepository > block_header_repo_
boost::variant< BlockHash, BlockNumber > BlockId
Block id is the variant over BlockHash and BlockNumber.