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

#include "ordering_gate_transport.hpp"

Collaboration diagram for iroha::network::OrderingGateTransport:
Collaboration graph

Public Member Functions

virtual void subscribe (std::shared_ptr< OrderingGateNotification > subscriber)=0
virtual void propagateBatch (std::shared_ptr< shared_model::interface::TransactionBatch > batch)=0
virtual ~OrderingGateTransport ()=default

Detailed Description

A generic transport interface for ordering gate, 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::OrderingGateTransport::~OrderingGateTransport ( )

Member Function Documentation

virtual void iroha::network::OrderingGateTransport::propagateBatch ( std::shared_ptr< shared_model::interface::TransactionBatch batch)
pure virtual

Propagates transaction batch over network

batchto be propagated
virtual void iroha::network::OrderingGateTransport::subscribe ( std::shared_ptr< OrderingGateNotification subscriber)
pure virtual

Subscribes a notification class to current transport

subscriber: A pointer to OrderingGateNotification, that needs to be notified

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