Kagome
Polkadot Runtime Engine in C++17
|
#include <print_chain_info_mode.hpp>
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::BlockTree > | block_tree_ |
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.
|
inline |
Definition at line 31 of file print_chain_info_mode.hpp.
|
overridevirtual |
Runs application in this mode.
Implements kagome::application::Mode.
Definition at line 22 of file print_chain_info_mode.cpp.
|
private |
Definition at line 37 of file print_chain_info_mode.hpp.