hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::consensus::yac::YacGateImpl Class Reference

#include "yac_gate_impl.hpp"

Inheritance diagram for iroha::consensus::yac::YacGateImpl:
Inheritance graph
Collaboration diagram for iroha::consensus::yac::YacGateImpl:
Collaboration graph

Public Member Functions

 YacGateImpl (std::shared_ptr< HashGate > hash_gate, std::shared_ptr< YacPeerOrderer > orderer, std::optional< ClusterOrdering > alternative_order, std::shared_ptr< const LedgerState > ledger_state, std::shared_ptr< YacHashProvider > hash_provider, std::shared_ptr< consensus::ConsensusResultCache > consensus_result_cache, logger::LoggerPtr log)
 
void vote (const simulator::BlockCreatorEvent &event) override
 
std::optional< GateObjectprocessOutcome (Answer const &outcome)
 
void stop () override
 Prevent any new outgoing network activity. Be passive. More...
 
std::optional< GateObjectprocessRoundSwitch (consensus::Round const &round, std::shared_ptr< LedgerState const > ledger_state)
 
- Public Member Functions inherited from iroha::network::ConsensusGate
virtual ~ConsensusGate ()=default
 

Constructor & Destructor Documentation

◆ YacGateImpl()

YacGateImpl::YacGateImpl ( std::shared_ptr< HashGate hash_gate,
std::shared_ptr< YacPeerOrderer orderer,
std::optional< ClusterOrdering alternative_order,
std::shared_ptr< const LedgerState ledger_state,
std::shared_ptr< YacHashProvider hash_provider,
std::shared_ptr< consensus::ConsensusResultCache consensus_result_cache,
logger::LoggerPtr  log 
)

Member Function Documentation

◆ processOutcome()

std::optional< iroha::consensus::GateObject > YacGateImpl::processOutcome ( Answer const &  outcome)
Here is the caller graph for this function:

◆ processRoundSwitch()

std::optional< iroha::consensus::GateObject > YacGateImpl::processRoundSwitch ( consensus::Round const &  round,
std::shared_ptr< LedgerState const >  ledger_state 
)
Here is the call graph for this function:

◆ stop()

void YacGateImpl::stop ( )
overridevirtual

Prevent any new outgoing network activity. Be passive.

Implements iroha::network::ConsensusGate.

◆ vote()

void YacGateImpl::vote ( const simulator::BlockCreatorEvent event)
overridevirtual

Vote for given block creator event in consensus

Implements iroha::network::ConsensusGate.

Here is the caller graph for this function:

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