hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
pending_txs_storage.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PENDING_TXS_STORAGE_HPP
7 #define IROHA_PENDING_TXS_STORAGE_HPP
8 
9 #include <boost/optional.hpp>
10 #include <rxcpp/rx.hpp>
11 #include "common/result.hpp"
15 
16 namespace iroha {
17 
22  public:
27  enum ErrorCode {
28  kNotFound, // there is no batch which first tx has specified hash
29  };
30 
35  struct Response {
39  boost::optional<
42 
44  };
45 
46  // TODO igor-egorov 2019-06-06 IR-516 remove deprecated interface
55  [[deprecated]] virtual shared_model::interface::types::
59  const = 0;
60 
70  virtual expected::Result<Response, ErrorCode> getPendingTransactions(
73  const boost::optional<shared_model::interface::types::HashType>
74  &first_tx_hash) const = 0;
75 
76  virtual ~PendingTransactionStorage() = default;
77  };
78 
79 } // namespace iroha
80 
81 #endif // IROHA_PENDING_TXS_STORAGE_HPP
boost::optional< shared_model::interface::PendingTransactionsPageResponse::BatchInfo > next_batch_info
Definition: pending_txs_storage.hpp:41
shared_model::interface::types::TransactionsNumberType all_transactions_size
Definition: pending_txs_storage.hpp:38
Response()
Definition: pending_txs_storage.hpp:43
Definition: pending_txs_storage.hpp:28
Definition: block_query.hpp:14
std::string AccountIdType
Type of account id.
Definition: types.hpp:39
ErrorCode
Definition: pending_txs_storage.hpp:27
Definition: pending_txs_storage.hpp:35
uint16_t TransactionsNumberType
Type of a number of transactions in block and query response page.
Definition: types.hpp:81
Definition: pending_transactions_page_response.hpp:27
virtual ~PendingTransactionStorage()=default
virtual shared_model::interface::types::SharedTxsCollectionType getPendingTransactions(const shared_model::interface::types::AccountIdType &account_id) const =0
Definition: pending_txs_storage.hpp:21
std::vector< std::shared_ptr< Transaction >> SharedTxsCollectionType
Definition: transaction_sequence_common.hpp:27
shared_model::interface::types::SharedTxsCollectionType transactions
Definition: pending_txs_storage.hpp:36