#include "on_demand_ordering_service.hpp"


Public Types | |
| using | HashesSetType = std::unordered_set< shared_model::crypto::Hash, shared_model::crypto::Hash::Hasher > |
Public Types inherited from iroha::ordering::transport::OdOsNotification | |
| using | ProposalType = shared_model::interface::Proposal |
| using | BatchesSetType = std::unordered_set< std::shared_ptr< shared_model::interface::TransactionBatch >, BatchPointerHasher, shared_model::interface::BatchHashEquality > |
| using | TransactionBatchType = std::shared_ptr< shared_model::interface::TransactionBatch > |
| using | CollectionType = std::vector< TransactionBatchType > |
Public Member Functions | |
| virtual void | onCollaborationOutcome (consensus::Round round)=0 |
| virtual void | onTxsCommitted (const HashesSetType &hashes)=0 |
| virtual void | forCachedBatches (std::function< void(const transport::OdOsNotification::BatchesSetType &)> const &f)=0 |
Public Member Functions inherited from iroha::ordering::transport::OdOsNotification | |
| virtual void | onBatches (CollectionType batches)=0 |
| virtual boost::optional< std::shared_ptr< const ProposalType > > | onRequestProposal (consensus::Round round)=0 |
| virtual | ~OdOsNotification ()=default |
Ordering Service aka OS which can share proposals by request
| using iroha::ordering::OnDemandOrderingService::HashesSetType = std::unordered_set<shared_model::crypto::Hash, shared_model::crypto::Hash::Hasher> |
|
pure virtual |
Method to get betches under lock
| f | - callback function |
|
pure virtual |
Method which should be invoked on outcome of collaboration for round
| round | - proposal round which has started |
Implemented in iroha::ordering::OnDemandOrderingServiceImpl.
|
pure virtual |
Method to be invoked when transactions commited into ledger.
| hashes | - txs list |
Implemented in iroha::ordering::OnDemandOrderingServiceImpl.