Kagome
Polkadot Runtime Engine in C++17
kagome::blockchain::TreeMeta Struct Reference

#include <cached_tree.hpp>

Collaboration diagram for kagome::blockchain::TreeMeta:

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::BlockHashleaves
 
std::weak_ptr< TreeNodedeepest_leaf
 
std::weak_ptr< TreeNodelast_finalized
 
std::optional< primitives::Justificationlast_finalized_justification
 

Detailed Description

Useful information about the tree & blocks it contains to make some of the operations faster

Definition at line 89 of file cached_tree.hpp.

Constructor & Destructor Documentation

kagome::blockchain::TreeMeta::TreeMeta ( const std::shared_ptr< TreeNode > &  subtree_root_node,
std::optional< primitives::Justification last_finalized_justification 
)
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.

Member Data Documentation

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.


The documentation for this struct was generated from the following files: