Kagome
Polkadot Runtime Engine in C++17
digest_tracker.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_BLOCKCHAIN_DIGESTSTRACKER
7 #define KAGOME_BLOCKCHAIN_DIGESTSTRACKER
8 
9 #include "outcome/outcome.hpp"
10 #include "primitives/common.hpp"
11 #include "primitives/digest.hpp"
12 
13 namespace kagome::blockchain {
14 
15  class DigestTracker {
16  public:
17  virtual ~DigestTracker() = default;
18 
24  virtual outcome::result<void> onDigest(
25  const primitives::BlockInfo &block,
26  const primitives::Digest &digest) = 0;
27 
33  virtual void cancel(const primitives::BlockInfo &block) = 0;
34  };
35 
36 } // namespace kagome::blockchain
37 
38 #endif // KAGOME_BLOCKCHAIN_DIGESTSTRACKER
virtual void cancel(const primitives::BlockInfo &block)=0
virtual outcome::result< void > onDigest(const primitives::BlockInfo &block, const primitives::Digest &digest)=0