Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
justification_storage_policy.hpp
Go to the documentation of this file.
1
6
#ifndef KAGOME_JUSTIFICATION_STORAGE_POLICY_HPP
7
#define KAGOME_JUSTIFICATION_STORAGE_POLICY_HPP
8
9
#include "
primitives/block_header.hpp
"
10
11
namespace
kagome::blockchain
{
12
class
BlockTree;
13
}
14
15
namespace
kagome::blockchain
{
16
17
class
JustificationStoragePolicy
{
18
public
:
19
virtual
~JustificationStoragePolicy
() =
default
;
20
21
virtual
outcome::result<bool>
shouldStoreFor
(
22
const
primitives::BlockHeader
&block)
const
= 0;
23
};
24
25
class
JustificationStoragePolicyImpl
final
26
:
public
JustificationStoragePolicy
{
27
public
:
28
virtual
outcome::result<bool>
shouldStoreFor
(
29
const
primitives::BlockHeader
&block)
const override
;
30
31
virtual
void
initBlockchainInfo(
32
std::shared_ptr<const blockchain::BlockTree> block_tree);
33
34
private
:
35
std::shared_ptr<const blockchain::BlockTree>
block_tree_
;
36
};
37
38
}
// namespace kagome::blockchain
39
40
#endif // KAGOME_JUSTIFICATION_STORAGE_POLICY_HPP
kagome::blockchain::JustificationStoragePolicyImpl
Definition:
justification_storage_policy.hpp:25
kagome::blockchain::JustificationStoragePolicy::shouldStoreFor
virtual outcome::result< bool > shouldStoreFor(const primitives::BlockHeader &block) const =0
block_header.hpp
kagome::blockchain::JustificationStoragePolicy::~JustificationStoragePolicy
virtual ~JustificationStoragePolicy()=default
kagome::blockchain::JustificationStoragePolicy
Definition:
justification_storage_policy.hpp:17
kagome::blockchain
Definition:
author_api_impl.hpp:28
kagome::blockchain::JustificationStoragePolicyImpl::block_tree_
std::shared_ptr< const blockchain::BlockTree > block_tree_
Definition:
justification_storage_policy.hpp:35
kagome::primitives::BlockHeader
Definition:
block_header.hpp:25
core
blockchain
impl
justification_storage_policy.hpp
Generated by
1.8.11