#include "network_impl.hpp"


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 |
Class which provides implementation of client-side transport for consensus based on grpc
| using iroha::consensus::yac::NetworkImpl::Service = proto::Yac |
| NetworkImpl::NetworkImpl | ( | std::unique_ptr< iroha::network::ClientFactory< ::iroha::consensus::yac::proto::Yac >> | client_factory, |
| logger::LoggerPtr | log | ||
| ) |
|
overridevirtual |
Directly share collection of votes
| to | - peer recipient |
| state | - message for sending |
Implements iroha::consensus::yac::YacNetwork.

|
overridevirtual |
Prevent any new outgoing network activity. Be passive.
Implements iroha::consensus::yac::YacNetwork.