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

#include "simulator.hpp"

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

Public Types

using CryptoSignerType = shared_model::crypto::AbstractCryptoModelSigner< shared_model::interface::Block >
 

Public Member Functions

 Simulator (std::unique_ptr< iroha::ametsuchi::CommandExecutor > command_executor, std::shared_ptr< validation::StatefulValidator > statefulValidator, std::shared_ptr< ametsuchi::TemporaryFactory > factory, std::shared_ptr< CryptoSignerType > crypto_signer, std::unique_ptr< shared_model::interface::UnsafeBlockFactory > block_factory, logger::LoggerPtr log)
 
VerifiedProposalCreatorEvent processProposal (network::OrderingEvent const &event) override
 
BlockCreatorEvent processVerifiedProposal (VerifiedProposalCreatorEvent const &event) override
 
- Public Member Functions inherited from iroha::simulator::VerifiedProposalCreator
virtual ~VerifiedProposalCreator ()=default
 
- Public Member Functions inherited from iroha::simulator::BlockCreator
virtual ~BlockCreator ()=default
 

Member Typedef Documentation

◆ CryptoSignerType

Constructor & Destructor Documentation

◆ Simulator()

iroha::simulator::Simulator::Simulator ( std::unique_ptr< iroha::ametsuchi::CommandExecutor command_executor,
std::shared_ptr< validation::StatefulValidator statefulValidator,
std::shared_ptr< ametsuchi::TemporaryFactory factory,
std::shared_ptr< CryptoSignerType crypto_signer,
std::unique_ptr< shared_model::interface::UnsafeBlockFactory block_factory,
logger::LoggerPtr  log 
)

Member Function Documentation

◆ processProposal()

VerifiedProposalCreatorEvent iroha::simulator::Simulator::processProposal ( network::OrderingEvent const &  event)
overridevirtual

Execute stateful validation for given proposal

Implements iroha::simulator::VerifiedProposalCreator.

Here is the call graph for this function:

◆ processVerifiedProposal()

BlockCreatorEvent iroha::simulator::Simulator::processVerifiedProposal ( VerifiedProposalCreatorEvent const &  event)
overridevirtual

Creates a block from given proposal and top block info

Implements iroha::simulator::BlockCreator.

Here is the call graph for this function:

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