Kagome
Polkadot Runtime Engine in C++17
|
#include <cached_tree.hpp>
Public Member Functions | |
TreeMeta (const std::shared_ptr< TreeNode > &subtree_root_node, std::optional< primitives::Justification > last_finalized_justification) | |
TreeMeta (std::unordered_set< primitives::BlockHash > leaves, const std::shared_ptr< TreeNode > &deepest_leaf, const std::shared_ptr< TreeNode > &last_finalized, primitives::Justification last_finalized_justification) | |
Public Attributes | |
std::unordered_set< primitives::BlockHash > | leaves |
std::weak_ptr< TreeNode > | deepest_leaf |
std::weak_ptr< TreeNode > | last_finalized |
std::optional< primitives::Justification > | last_finalized_justification |
Useful information about the tree & blocks it contains to make some of the operations faster
Definition at line 89 of file cached_tree.hpp.
|
explicit |
Definition at line 120 of file cached_tree.cpp.
kagome::blockchain::TreeMeta::TreeMeta | ( | std::unordered_set< primitives::BlockHash > | leaves, |
const std::shared_ptr< TreeNode > & | deepest_leaf, | ||
const std::shared_ptr< TreeNode > & | last_finalized, | ||
primitives::Justification | last_finalized_justification | ||
) |
Definition at line 152 of file cached_tree.cpp.
std::weak_ptr<TreeNode> kagome::blockchain::TreeMeta::deepest_leaf |
Definition at line 100 of file cached_tree.hpp.
std::weak_ptr<TreeNode> kagome::blockchain::TreeMeta::last_finalized |
Definition at line 102 of file cached_tree.hpp.
std::optional<primitives::Justification> kagome::blockchain::TreeMeta::last_finalized_justification |
Definition at line 103 of file cached_tree.hpp.
std::unordered_set<primitives::BlockHash> kagome::blockchain::TreeMeta::leaves |
Definition at line 99 of file cached_tree.hpp.