Kagome
Polkadot Runtime Engine in C++17
kagome::storage::trie::DummyNode Struct Reference

#include <trie_node.hpp>

Inheritance diagram for kagome::storage::trie::DummyNode:
Collaboration diagram for kagome::storage::trie::DummyNode:

Public Member Functions

 DummyNode (common::Buffer key)
 
int getType () const override
 
- Public Member Functions inherited from kagome::storage::trie::Node
virtual ~Node ()=default
 

Public Attributes

common::Buffer db_key
 

Detailed Description

Used in branch nodes to indicate that there is a node, but this node is not interesting at the moment and need not be retrieved from the storage.

Definition at line 191 of file trie_node.hpp.

Constructor & Destructor Documentation

kagome::storage::trie::DummyNode::DummyNode ( common::Buffer  key)
inlineexplicit

Constructs a dummy node

Parameters
keya storage key, which is a hash of an encoded node according to PolkaDot specification

Definition at line 197 of file trie_node.hpp.

Member Function Documentation

int kagome::storage::trie::DummyNode::getType ( ) const
inlineoverridevirtual

Implements kagome::storage::trie::Node.

Definition at line 199 of file trie_node.hpp.

Member Data Documentation

common::Buffer kagome::storage::trie::DummyNode::db_key

Definition at line 206 of file trie_node.hpp.


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