hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::simulator::BlockCreator Class Referenceabstract

#include "block_creator.hpp"

Inheritance diagram for iroha::simulator::BlockCreator:
Inheritance graph
Collaboration diagram for iroha::simulator::BlockCreator:
Collaboration graph

Public Member Functions

virtual boost::optional< std::shared_ptr< shared_model::interface::Block > > processVerifiedProposal (const std::shared_ptr< validation::VerifiedProposalAndErrors > &verified_proposal_and_errors)=0
 
virtual rxcpp::observable< BlockCreatorEventonBlock ()=0
 
virtual ~BlockCreator ()=default
 

Detailed Description

Interface for creating blocks from proposal

Constructor & Destructor Documentation

virtual iroha::simulator::BlockCreator::~BlockCreator ( )
virtualdefault

Member Function Documentation

virtual rxcpp::observable<BlockCreatorEvent> iroha::simulator::BlockCreator::onBlock ( )
pure virtual

Emit blocks made from proposals

Implemented in iroha::simulator::Simulator.

virtual boost::optional<std::shared_ptr<shared_model::interface::Block> > iroha::simulator::BlockCreator::processVerifiedProposal ( const std::shared_ptr< validation::VerifiedProposalAndErrors > &  verified_proposal_and_errors)
pure virtual

Creates a block from given proposal


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