#include "yac_gate_impl.hpp"


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< GateObject > | processOutcome (Answer const &outcome) |
| void | stop () override |
| Prevent any new outgoing network activity. Be passive. More... | |
| std::optional< GateObject > | processRoundSwitch (consensus::Round const &round, std::shared_ptr< LedgerState const > ledger_state) |
Public Member Functions inherited from iroha::network::ConsensusGate | |
| virtual | ~ConsensusGate ()=default |
| 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 | ||
| ) |
| std::optional< iroha::consensus::GateObject > YacGateImpl::processOutcome | ( | Answer const & | outcome | ) |

| std::optional< iroha::consensus::GateObject > YacGateImpl::processRoundSwitch | ( | consensus::Round const & | round, |
| std::shared_ptr< LedgerState const > | ledger_state | ||
| ) |

|
overridevirtual |
Prevent any new outgoing network activity. Be passive.
Implements iroha::network::ConsensusGate.
|
overridevirtual |
Vote for given block creator event in consensus
Implements iroha::network::ConsensusGate.
