#include "on_demand_os_transport.hpp"


Public Types | |
| using | ProposalType = shared_model::interface::Proposal |
| using | TransactionBatchType = std::shared_ptr< shared_model::interface::TransactionBatch > |
| using | CollectionType = std::vector< TransactionBatchType > |
Public Member Functions | |
| virtual void | onBatches (CollectionType batches)=0 |
| virtual boost::optional< std::shared_ptr< const ProposalType > > | onRequestProposal (consensus::Round round)=0 |
| virtual | ~OdOsNotification ()=default |
Notification interface of on demand ordering service.
| using iroha::ordering::transport::OdOsNotification::CollectionType = std::vector<TransactionBatchType> |
Type of inserted collections
| using iroha::ordering::transport::OdOsNotification::ProposalType = shared_model::interface::Proposal |
Type of stored proposals
| using iroha::ordering::transport::OdOsNotification::TransactionBatchType = std::shared_ptr<shared_model::interface::TransactionBatch> |
Type of stored transaction batches
|
virtualdefault |
|
pure virtual |
Callback on receiving transactions
| batches | - vector of passed transaction batches |
Implemented in iroha::ordering::OnDemandConnectionManager, iroha::ordering::OnDemandOrderingServiceImpl, and iroha::ordering::transport::OnDemandOsClientGrpc.
|
pure virtual |
Callback on request about proposal
| round | - number of collaboration round. Calculated as block_height + 1 |
Implemented in iroha::ordering::OnDemandConnectionManager, iroha::ordering::OnDemandOrderingServiceImpl, and iroha::ordering::transport::OnDemandOsClientGrpc.