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 "common/result.hpp"
14 
15 namespace iroha {
16 
21  public:
26  enum ErrorCode {
27  kNotFound, // there is no batch which first tx has specified hash
28  };
29 
34  struct Response {
38  boost::optional<
41 
43  };
44 
45  // TODO igor-egorov 2019-06-06 IR-516 remove deprecated interface
54  [[deprecated]] virtual shared_model::interface::types::
58  const = 0;
59 
69  virtual expected::Result<Response, ErrorCode> getPendingTransactions(
72  const boost::optional<shared_model::interface::types::HashType>
73  &first_tx_hash) const = 0;
74 
75  virtual ~PendingTransactionStorage() = default;
76  };
77 
78 } // namespace iroha
79 
80 #endif // IROHA_PENDING_TXS_STORAGE_HPP
boost::optional< shared_model::interface::PendingTransactionsPageResponse::BatchInfo > next_batch_info
Definition: pending_txs_storage.hpp:40
shared_model::interface::types::TransactionsNumberType all_transactions_size
Definition: pending_txs_storage.hpp:37
Response()
Definition: pending_txs_storage.hpp:42
Definition: pending_txs_storage.hpp:27
Definition: block_query.hpp:14
std::string AccountIdType
Type of account id.
Definition: types.hpp:39
ErrorCode
Definition: pending_txs_storage.hpp:26
Definition: pending_txs_storage.hpp:34
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:20
std::vector< std::shared_ptr< Transaction >> SharedTxsCollectionType
Definition: transaction_sequence_common.hpp:27
shared_model::interface::types::SharedTxsCollectionType transactions
Definition: pending_txs_storage.hpp:35