6 #ifndef KAGOME_CHAIN_IMPL_HPP 7 #define KAGOME_CHAIN_IMPL_HPP 15 class GrandpaTransmitter;
23 std::shared_ptr<blockchain::BlockTree> block_tree,
24 std::shared_ptr<blockchain::BlockHeaderRepository> header_repository,
25 std::shared_ptr<authority::AuthorityManager> authority_manager,
26 std::shared_ptr<network::GrandpaTransmitter> transmitter);
33 std::weak_ptr<JustificationObserver> justification_observer)
override {
34 BOOST_ASSERT(justification_observer_.expired());
35 justification_observer_ = std::move(justification_observer);
40 outcome::result<bool> hasBlock(
43 outcome::result<std::vector<primitives::BlockHash>> getAncestry(
50 outcome::result<BlockInfo> bestChainContaining(
52 std::optional<VoterSetId> voter_set_id)
const override;
56 outcome::result<void> onCatchUpRequested(
61 outcome::result<void> onCatchUpRespond(
65 std::vector<SignedPrevote> prevote_justification,
66 std::vector<SignedPrecommit> precommit_justification,
77 outcome::result<void> onCommitted(
83 outcome::result<void> onNeighborMessageSent(
88 outcome::result<void> applyJustification(
92 outcome::result<void> finalize(
98 outcome::result<GrandpaJustification> getJustification(
113 #endif // KAGOME_CHAIN_IMPL_HPP
void setJustificationObserver(std::weak_ptr< JustificationObserver > justification_observer) override
libp2p::peer::PeerId PeerId
std::shared_ptr< soralog::Logger > Logger
primitives::BlockNumber BlockNumber
std::shared_ptr< blockchain::BlockHeaderRepository > header_repository_
std::shared_ptr< authority::AuthorityManager > authority_manager_
std::weak_ptr< JustificationObserver > justification_observer_
Stores the current state of the round.
std::shared_ptr< network::GrandpaTransmitter > transmitter_
std::shared_ptr< blockchain::BlockTree > block_tree_