hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::network::OrderingServiceTransport Class Referenceabstract

#include "ordering_service_transport.hpp"

Collaboration diagram for iroha::network::OrderingServiceTransport:
Collaboration graph

Public Member Functions

virtual void subscribe (std::shared_ptr< OrderingServiceNotification > subscriber)=0
 
virtual void publishProposal (std::unique_ptr< shared_model::interface::Proposal > proposal, const std::vector< std::string > &peers)=0
 
virtual ~OrderingServiceTransport ()=default
 

Detailed Description

A generic transport interface for ordering service, any output transaction must go through this transport Moreover, it receives transaction and then routes it to a subscriber

Constructor & Destructor Documentation

virtual iroha::network::OrderingServiceTransport::~OrderingServiceTransport ( )
virtualdefault

Member Function Documentation

virtual void iroha::network::OrderingServiceTransport::publishProposal ( std::unique_ptr< shared_model::interface::Proposal proposal,
const std::vector< std::string > &  peers 
)
pure virtual

Publishes proposal over network

Parameters
proposal: proposal to be published
virtual void iroha::network::OrderingServiceTransport::subscribe ( std::shared_ptr< OrderingServiceNotification subscriber)
pure virtual

Subscribes a notification class to current transport

Parameters
subscriber: A pointer to OrderingServiceNotification, that needs to be notified

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