Kagome
Polkadot Runtime Engine in C++17
justification_observer.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_CONSENSUS_GRANDPA_JUSTIFICATIONOBSERVER
7 #define KAGOME_CONSENSUS_GRANDPA_JUSTIFICATIONOBSERVER
8 
10 #include "primitives/common.hpp"
11 
13 
19  virtual ~JustificationObserver() = default;
20 
29  virtual outcome::result<void> applyJustification(
30  const primitives::BlockInfo &block_info,
31  const GrandpaJustification &justification) = 0;
32  };
33 
34 } // namespace kagome::consensus::grandpa
35 
36 #endif // KAGOME_CONSENSUS_GRANDPA_JUSTIFICATIONOBSERVER
observes justification assigned to syncing blocks.
virtual outcome::result< void > applyJustification(const primitives::BlockInfo &block_info, const GrandpaJustification &justification)=0