hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
raw_block_loader.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_RAW_BLOCK_INSERTION_HPP
7 #define IROHA_RAW_BLOCK_INSERTION_HPP
8 
9 #include <memory>
10 #include <string>
11 
12 #include "common/result_fwd.hpp"
13 
14 namespace shared_model {
15  namespace interface {
16  class Block;
17  }
18 } // namespace shared_model
19 
20 namespace iroha {
21  namespace main {
28  class BlockLoader {
29  public:
35  static iroha::expected::
36  Result<std::unique_ptr<shared_model::interface::Block>, std::string>
37  parseBlock(const std::string &data);
38  };
39 
40  } // namespace main
41 } // namespace iroha
42 #endif // IROHA_RAW_BLOCK_INSERTION_HPP
int main(int argc, char *argv[])
Definition: irohad.cpp:199
Definition: block_query.hpp:15
Definition: raw_block_loader.hpp:28
Definition: command_executor.hpp:12