#include "simulator.hpp"


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< network::OrderingGate > ordering_gate, 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) | |
| ~Simulator () override | |
| std::shared_ptr< validation::VerifiedProposalAndErrors > | processProposal (const shared_model::interface::Proposal &proposal) override |
| rxcpp::observable< VerifiedProposalCreatorEvent > | onVerifiedProposal () override |
| boost::optional< std::shared_ptr< shared_model::interface::Block > > | processVerifiedProposal (const std::shared_ptr< iroha::validation::VerifiedProposalAndErrors > &verified_proposal_and_errors, const TopBlockInfo &top_block_info) override |
| rxcpp::observable< BlockCreatorEvent > | onBlock () override |
Public Member Functions inherited from iroha::simulator::VerifiedProposalCreator | |
| virtual | ~VerifiedProposalCreator ()=default |
Public Member Functions inherited from iroha::simulator::BlockCreator | |
| virtual boost::optional< std::shared_ptr< shared_model::interface::Block > > | processVerifiedProposal (const std::shared_ptr< validation::VerifiedProposalAndErrors > &verified_proposal_and_errors, const TopBlockInfo &top_block_info)=0 |
| virtual | ~BlockCreator ()=default |
| using iroha::simulator::Simulator::CryptoSignerType = shared_model::crypto::AbstractCryptoModelSigner< shared_model::interface::Block> |
| iroha::simulator::Simulator::Simulator | ( | std::unique_ptr< iroha::ametsuchi::CommandExecutor > | command_executor, |
| std::shared_ptr< network::OrderingGate > | ordering_gate, | ||
| 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 | ||
| ) |
|
override |
|
overridevirtual |
Emit blocks made from proposals
Implements iroha::simulator::BlockCreator.
|
overridevirtual |
Emit proposals which were verified by stateful validator
Implements iroha::simulator::VerifiedProposalCreator.
|
overridevirtual |
Execute stateful validation for given proposal
Implements iroha::simulator::VerifiedProposalCreator.
|
override |