6 #ifndef KAGOME_CORE_CONSENSUS_GRANDPA_ENVIRONMENT_HPP 7 #define KAGOME_CORE_CONSENSUS_GRANDPA_ENVIRONMENT_HPP 20 class BlockHeaderRepository;
31 struct JustificationObserver;
44 std::function<void(outcome::result<MovableRoundState>)>;
51 virtual void setJustificationObserver(
52 std::weak_ptr<JustificationObserver> justification_observer) = 0;
57 virtual outcome::result<void> onCatchUpRequested(
65 virtual outcome::result<void> onCatchUpRespond(
69 std::vector<SignedPrevote> prevote_justification,
70 std::vector<SignedPrecommit> precommit_justification,
85 virtual outcome::result<void> onVoted(
RoundNumber round,
94 virtual outcome::result<void> onCommitted(
106 virtual outcome::result<void> onNeighborMessageSent(
117 virtual outcome::result<void> applyJustification(
125 virtual outcome::result<void> finalize(
135 virtual outcome::result<GrandpaJustification> getJustification(
141 #endif // KAGOME_CORE_CONSENSUS_GRANDPA_ENVIRONMENT_HPP
std::function< void(outcome::result< MovableRoundState >)> CompleteHandler
libp2p::peer::PeerId PeerId
primitives::BlockNumber BlockNumber
Stores the current state of the round.