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

#include "consensus_service_impl.hpp"

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

Public Types

using Service = proto::Yac
 

Public Member Functions

 ServiceImpl (logger::LoggerPtr log, std::function< void(std::vector< VoteMessage >)> callback)
 
grpc::Status SendState (::grpc::ServerContext *context, const ::iroha::consensus::yac::proto::State *request, ::google::protobuf::Empty *response) override
 

Detailed Description

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

Member Typedef Documentation

◆ Service

Constructor & Destructor Documentation

◆ ServiceImpl()

ServiceImpl::ServiceImpl ( logger::LoggerPtr  log,
std::function< void(std::vector< VoteMessage >)>  callback 
)

Member Function Documentation

◆ SendState()

grpc::Status ServiceImpl::SendState ( ::grpc::ServerContext *  context,
const ::iroha::consensus::yac::proto::State *  request,
::google::protobuf::Empty *  response 
)
override

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

Here is the call graph for this function:

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