hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
shared_model::interface::UnsafeBlockFactory Class Referenceabstract

#include "unsafe_block_factory.hpp"

Inheritance diagram for shared_model::interface::UnsafeBlockFactory:
Inheritance graph
Collaboration diagram for shared_model::interface::UnsafeBlockFactory:
Collaboration graph

Public Member Functions

virtual std::unique_ptr< BlockunsafeCreateBlock (types::HeightType height, const types::HashType &prev_hash, types::TimestampType created_time, const types::TransactionsCollectionType &txs, const interface::types::HashCollectionType &rejected_hashes)=0
 
virtual ~UnsafeBlockFactory ()=default
 

Detailed Description

UnsafeBlockFactory creates block without any validation

Constructor & Destructor Documentation

virtual shared_model::interface::UnsafeBlockFactory::~UnsafeBlockFactory ( )
virtualdefault

Member Function Documentation

virtual std::unique_ptr<Block> shared_model::interface::UnsafeBlockFactory::unsafeCreateBlock ( types::HeightType  height,
const types::HashType prev_hash,
types::TimestampType  created_time,
const types::TransactionsCollectionType txs,
const interface::types::HashCollectionType rejected_hashes 
)
pure virtual

Create block without any validation

Parameters
height- block height
prev_hash- hash of the previous block
created_time- time the block is created
txs- list of transactions. If it empty, EmptyBlock is creted
Returns
BlockVariant with block or empty block

Implemented in shared_model::proto::ProtoBlockFactory.


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