Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
Kagome
Consensus
core
Development guide
Guide for `outcome::result<T>`
Rules
Terms
Tooling
Overview
Your first Kagome chain
Runing Kagome in docker container
Start private Kagome network
Namespaces
Classes
Files
File List
core
api
application
assets
authority_discovery
authorship
blockchain
impl
block_header_repository_impl.cpp
block_header_repository_impl.hpp
block_storage_error.cpp
block_storage_impl.cpp
block_storage_impl.hpp
block_tree_error.cpp
block_tree_impl.cpp
block_tree_impl.hpp
cached_tree.cpp
cached_tree.hpp
common.cpp
common.hpp
digest_tracker_impl.cpp
digest_tracker_impl.hpp
justification_storage_policy.cpp
justification_storage_policy.hpp
storage_util.cpp
storage_util.hpp
block_header_repository.hpp
block_storage.hpp
block_storage_error.hpp
block_tree.hpp
block_tree_error.hpp
digest_tracker.hpp
clock
common
consensus
containers
crypto
filesystem
host_api
injector
log
macro
metrics
network
offchain
outcome
parachain
primitives
runtime
scale
storage
subscription
telemetry
transaction_pool
utils
docs
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
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