hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::main::BlockLoader Class Reference

#include "raw_block_loader.hpp"

Collaboration diagram for iroha::main::BlockLoader:
Collaboration graph

Static Public Member Functions

static iroha::expected::Result< std::unique_ptr< shared_model::interface::Block >, std::string > parseBlock (const std::string &data)
 

Detailed Description

Class provide functionality to insert blocks to storage without any validation. This class will be useful for creating test environment and testing pipeline.

Member Function Documentation

◆ parseBlock()

iroha::expected::Result< std::unique_ptr< Block >, std::string > iroha::main::BlockLoader::parseBlock ( const std::string &  data)
static

Parse block from JSON string

Parameters
data- JSON represenetation of the block
Returns
model Block if operation done successfully, error otherwise
Here is the caller graph for this function:

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