Kagome
Polkadot Runtime Engine in C++17
kagome::application::mode::PrintChainInfoMode Class Referencefinal

#include <print_chain_info_mode.hpp>

Inheritance diagram for kagome::application::mode::PrintChainInfoMode:
Collaboration diagram for kagome::application::mode::PrintChainInfoMode:

Public Member Functions

 PrintChainInfoMode (std::shared_ptr< blockchain::BlockTree > block_tree)
 
int run () const override
 Runs application in this mode. More...
 
- Public Member Functions inherited from kagome::application::Mode
virtual ~Mode ()=default
 

Private Attributes

std::shared_ptr< blockchain::BlockTreeblock_tree_
 

Detailed Description

Prints chain info JSON. Example: { "genesis_hash": "0x91...", "finalized_hash": "0x46...", "finalized_number": 100, "best_hash": "0x75..", "best_number": 105 }

Definition at line 29 of file print_chain_info_mode.hpp.

Constructor & Destructor Documentation

kagome::application::mode::PrintChainInfoMode::PrintChainInfoMode ( std::shared_ptr< blockchain::BlockTree block_tree)
inline

Definition at line 31 of file print_chain_info_mode.hpp.

Member Function Documentation

int kagome::application::mode::PrintChainInfoMode::run ( ) const
overridevirtual

Runs application in this mode.

Implements kagome::application::Mode.

Definition at line 22 of file print_chain_info_mode.cpp.

Member Data Documentation

std::shared_ptr<blockchain::BlockTree> kagome::application::mode::PrintChainInfoMode::block_tree_
private

Definition at line 37 of file print_chain_info_mode.hpp.


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