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

#include "consensus_init.hpp"

Collaboration diagram for iroha::consensus::yac::YacInit:
Collaboration graph

Public Member Functions

std::shared_ptr< YacGateinitConsensusGate (Round initial_round, std::optional< shared_model::interface::types::PeerList > alternative_peers, std::shared_ptr< const LedgerState > ledger_state, std::shared_ptr< network::BlockLoader > block_loader, const shared_model::crypto::Keypair &keypair, std::shared_ptr< consensus::ConsensusResultCache > block_cache, std::chrono::milliseconds vote_delay_milliseconds, ConsistencyModel consistency_model, const logger::LoggerManagerTreePtr &consensus_log_manager, std::shared_ptr< iroha::network::GenericClientFactory > client_factory)
 
std::shared_ptr< ServiceImplgetConsensusNetwork () const
 
void subscribe (std::function< void(GateObject const &)> callback)
 
std::optional< GateObjectprocessRoundSwitch (consensus::Round const &round, std::shared_ptr< LedgerState const > ledger_state)
 

Member Function Documentation

◆ getConsensusNetwork()

std::shared_ptr< iroha::consensus::yac::ServiceImpl > YacInit::getConsensusNetwork ( ) const

◆ initConsensusGate()

std::shared_ptr< iroha::consensus::yac::YacGate > YacInit::initConsensusGate ( Round  initial_round,
std::optional< shared_model::interface::types::PeerList alternative_peers,
std::shared_ptr< const LedgerState ledger_state,
std::shared_ptr< network::BlockLoader block_loader,
const shared_model::crypto::Keypair keypair,
std::shared_ptr< consensus::ConsensusResultCache block_cache,
std::chrono::milliseconds  vote_delay_milliseconds,
ConsistencyModel  consistency_model,
const logger::LoggerManagerTreePtr consensus_log_manager,
std::shared_ptr< iroha::network::GenericClientFactory client_factory 
)
Here is the call graph for this function:

◆ processRoundSwitch()

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

◆ subscribe()

void YacInit::subscribe ( std::function< void(GateObject const &)>  callback)
Here is the call graph for this function:

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