Kagome
Polkadot Runtime Engine in C++17
print_chain_info_mode.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_APPLICATION_PRINTCHAININFOMODE
7 #define KAGOME_APPLICATION_PRINTCHAININFOMODE
8 
9 #include "application/mode.hpp"
10 
11 #include <memory>
12 
13 namespace kagome::blockchain {
14  class BlockTree;
15 } // namespace kagome::blockchain
16 
17 namespace kagome::application::mode {
29  class PrintChainInfoMode final : public Mode {
30  public:
31  PrintChainInfoMode(std::shared_ptr<blockchain::BlockTree> block_tree)
32  : block_tree_(std::move(block_tree)) {}
33 
34  int run() const override;
35 
36  private:
37  std::shared_ptr<blockchain::BlockTree> block_tree_;
38  };
39 } // namespace kagome::application::mode
40 
41 #endif // KAGOME_APPLICATION_PRINTCHAININFOMODE
PrintChainInfoMode(std::shared_ptr< blockchain::BlockTree > block_tree)
STL namespace.
std::shared_ptr< blockchain::BlockTree > block_tree_
Special mode of running.
Definition: mode.hpp:12