Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
common.hpp
kagome::blockchain::DigestTracker::cancel
virtual void cancel(const primitives::BlockInfo &block)=0
kagome::primitives::detail::BlockInfoT
Definition:
common.hpp:26
kagome::blockchain::DigestTracker
Definition:
digest_tracker.hpp:15
outcome.hpp
kagome::common::SizeLimitedContainer
Definition:
size_limited_containers.hpp:35
kagome::blockchain::DigestTracker::~DigestTracker
virtual ~DigestTracker()=default
digest.hpp
kagome::blockchain
Definition:
author_api_impl.hpp:28
kagome::blockchain::DigestTracker::onDigest
virtual outcome::result< void > onDigest(const primitives::BlockInfo &block, const primitives::Digest &digest)=0
core
blockchain
digest_tracker.hpp
Generated by
1.8.11