|
| ~Environment () override=default |
|
virtual void | setJustificationObserver (std::weak_ptr< JustificationObserver > justification_observer)=0 |
|
virtual outcome::result< void > | onCatchUpRequested (const libp2p::peer::PeerId &peer_id, VoterSetId set_id, RoundNumber round_number)=0 |
|
virtual outcome::result< void > | onCatchUpRespond (const libp2p::peer::PeerId &peer_id, VoterSetId set_id, RoundNumber round_number, std::vector< SignedPrevote > prevote_justification, std::vector< SignedPrecommit > precommit_justification, BlockInfo best_final_candidate)=0 |
|
virtual void | sendState (const libp2p::peer::PeerId &peer_id, const MovableRoundState &state, VoterSetId voter_set_id)=0 |
|
virtual outcome::result< void > | onVoted (RoundNumber round, VoterSetId set_id, const SignedMessage &vote)=0 |
|
virtual outcome::result< void > | onCommitted (RoundNumber round, VoterSetId voter_ser_id, const BlockInfo &vote, const GrandpaJustification &justification)=0 |
|
virtual outcome::result< void > | onNeighborMessageSent (RoundNumber round, VoterSetId set_id, BlockNumber last_finalized)=0 |
|
virtual outcome::result< void > | applyJustification (const BlockInfo &block_info, const primitives::Justification &justification)=0 |
|
virtual outcome::result< void > | finalize (VoterSetId id, const GrandpaJustification &justification)=0 |
|
virtual outcome::result< GrandpaJustification > | getJustification (const BlockHash &block_hash)=0 |
|
Public Member Functions inherited from kagome::consensus::grandpa::Chain |
virtual | ~Chain ()=default |
|
virtual outcome::result< bool > | hasBlock (const primitives::BlockHash &block) const =0 |
| Checks if {. More...
|
|
virtual outcome::result< std::vector< primitives::BlockHash > > | getAncestry (const primitives::BlockHash &base, const primitives::BlockHash &block) const =0 |
| Get the ancestry of a {. More...
|
|
virtual bool | hasAncestry (const primitives::BlockHash &base, const primitives::BlockHash &block) const =0 |
| Check if block is ancestor for second one. More...
|
|
virtual outcome::result< BlockInfo > | bestChainContaining (const primitives::BlockHash &base, std::optional< VoterSetId > voter_set_id) const =0 |
|
bool | isEqualOrDescendOf (const primitives::BlockHash &base, const primitives::BlockHash &block) const |
|
Necessary environment for a voter. This encapsulates the database and networking layers of the chain.
Definition at line 42 of file environment.hpp.