13 std::shared_ptr<blockchain::BlockHeaderRepository> block_header_repo,
14 std::shared_ptr<Executor> executor)
15 : block_header_repo_{std::move(block_header_repo)},
21 outcome::result<std::optional<GrandpaApi::ScheduledChange>>
24 return executor_->callAt<std::optional<ScheduledChange>>(
25 block,
"GrandpaApi_pending_change", digest);
28 outcome::result<std::optional<GrandpaApi::ForcedChange>>
31 return executor_->callAt<std::optional<ForcedChange>>(
32 block,
"GrandpaApi_forced_change", digest);
39 "GrandpaApi_grandpa_authorities");
45 block_hash,
"GrandpaApi_current_set_id");
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
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.