#include "network_impl.hpp"


Public Types | |
| using | Service = proto::Yac |
| using | ClientFactory = iroha::network::ClientFactory< Service > |
Public Member Functions | |
| NetworkImpl (std::shared_ptr< network::AsyncGrpcClient< google::protobuf::Empty >> async_call, std::unique_ptr< iroha::network::ClientFactory< ::iroha::consensus::yac::proto::Yac >> client_factory, logger::LoggerPtr log) | |
| void | subscribe (std::shared_ptr< YacNetworkNotifications > handler) override |
| void | sendState (const shared_model::interface::Peer &to, const std::vector< VoteMessage > &state) override |
| grpc::Status | SendState (::grpc::ServerContext *context, const ::iroha::consensus::yac::proto::State *request, ::google::protobuf::Empty *response) 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 transport for consensus based on grpc
| using iroha::consensus::yac::NetworkImpl::Service = proto::Yac |
|
explicit |
|
overridevirtual |
Directly share collection of votes
| to | - peer recipient |
| state | - message for sending |
Implements iroha::consensus::yac::YacNetwork.

|
override |
Receive votes from another peer; Naming is confusing, because this is rpc call that perform on another machine;

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