hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_get_transactions.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PROTO_GET_TRANSACTIONS_HPP
7 #define IROHA_PROTO_GET_TRANSACTIONS_HPP
8 
10 
12 #include "cryptography/hash.hpp"
13 #include "queries.pb.h"
14 
15 namespace shared_model {
16  namespace proto {
17  class GetTransactions final
18  : public CopyableProto<interface::GetTransactions,
19  iroha::protocol::Query,
20  GetTransactions> {
21  public:
22  template <typename QueryType>
23  explicit GetTransactions(QueryType &&query);
24 
26 
27  GetTransactions(GetTransactions &&o) noexcept;
28 
29  const TransactionHashesType &transactionHashes() const override;
30 
31  private:
32  // ------------------------------| fields |-------------------------------
33 
34  const iroha::protocol::GetTransactions &get_transactions_;
35 
36  const TransactionHashesType transaction_hashes_;
37  };
38 
39  } // namespace proto
40 } // namespace shared_model
41 
42 #endif // IROHA_PROTO_GET_TRANSACTIONS_HPP
std::vector< interface::types::HashType > TransactionHashesType
type of hashes collection
Definition: get_transactions.hpp:17
Definition: proto_get_transactions.hpp:17
GetTransactions(QueryType &&query)
Definition: proto_get_transactions.cpp:13
Definition: command_executor.hpp:12
const TransactionHashesType & transactionHashes() const override
Definition: proto_get_transactions.cpp:37
Definition: trivial_proto.hpp:45