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

#include "network_impl.hpp"

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

Public Types

using Service = proto::Yac
 
using ClientFactory = iroha::network::ClientFactory< Service >
 

Public Member Functions

 NetworkImpl (std::unique_ptr< iroha::network::ClientFactory< ::iroha::consensus::yac::proto::Yac >> client_factory, logger::LoggerPtr log)
 
void sendState (const shared_model::interface::Peer &to, const std::vector< VoteMessage > &state) override
 
void stop () override
 Prevent any new outgoing network activity. Be passive. More...
 
- Public Member Functions inherited from iroha::consensus::yac::YacNetwork
virtual ~YacNetwork ()=default
 

Detailed Description

Class which provides implementation of client-side transport for consensus based on grpc

Member Typedef Documentation

◆ ClientFactory

◆ Service

Constructor & Destructor Documentation

◆ NetworkImpl()

NetworkImpl::NetworkImpl ( std::unique_ptr< iroha::network::ClientFactory< ::iroha::consensus::yac::proto::Yac >>  client_factory,
logger::LoggerPtr  log 
)

Member Function Documentation

◆ sendState()

void NetworkImpl::sendState ( const shared_model::interface::Peer to,
const std::vector< VoteMessage > &  state 
)
overridevirtual

Directly share collection of votes

Parameters
to- peer recipient
state- message for sending

Implements iroha::consensus::yac::YacNetwork.

Here is the call graph for this function:

◆ stop()

void NetworkImpl::stop ( )
overridevirtual

Prevent any new outgoing network activity. Be passive.

Implements iroha::consensus::yac::YacNetwork.


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