hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
tx_cache_response.hpp
Go to the documentation of this file.
1
6
#ifndef IROHA_TX_CACHE_RESPONSE_HPP
7
#define IROHA_TX_CACHE_RESPONSE_HPP
8
9
#include <variant>
10
11
#include "
cryptography/hash.hpp
"
12
13
namespace
iroha
{
14
namespace
ametsuchi {
15
16
namespace
tx_cache_response_details {
18
using
HashType
=
shared_model::crypto::Hash
;
19
25
struct
HashContainer
{
26
HashContainer
() =
default
;
27
explicit
HashContainer
(
const
HashType
&h) :
hash
(h) {}
28
29
HashType
hash
;
30
};
31
}
// namespace tx_cache_response_details
32
34
namespace
tx_cache_status_responses {
39
struct
Committed
:
public
tx_cache_response_details::HashContainer
{
40
using
HashContainer::HashContainer
;
41
};
42
47
struct
Rejected
:
public
tx_cache_response_details::HashContainer
{
48
using
HashContainer::HashContainer
;
49
};
50
55
struct
Missing
:
public
tx_cache_response_details::HashContainer
{
56
using
HashContainer::HashContainer
;
57
};
58
}
// namespace tx_cache_status_responses
59
61
using
TxCacheStatusType
= std::variant<
tx_cache_status_responses::Committed
,
62
tx_cache_status_responses::Rejected
,
63
tx_cache_status_responses::Missing
>;
64
65
}
// namespace ametsuchi
66
}
// namespace iroha
67
68
#endif // IROHA_TX_CACHE_RESPONSE_HPP
shared_model::crypto::Hash
Definition:
hash.hpp:18
iroha::ametsuchi::tx_cache_response_details::HashContainer::HashContainer
HashContainer()=default
iroha::ametsuchi::TxCacheStatusType
std::variant< tx_cache_status_responses::Committed, tx_cache_status_responses::Rejected, tx_cache_status_responses::Missing > TxCacheStatusType
Sum type of all possible concrete responses from the tx cache.
Definition:
tx_cache_response.hpp:63
iroha::ametsuchi::tx_cache_status_responses::Committed
Definition:
tx_cache_response.hpp:39
iroha::ametsuchi::tx_cache_response_details::HashContainer::HashContainer
HashContainer(const HashType &h)
Definition:
tx_cache_response.hpp:27
iroha
Definition:
block_query.hpp:15
iroha::ametsuchi::tx_cache_response_details::HashContainer::hash
HashType hash
Definition:
tx_cache_response.hpp:29
iroha::ametsuchi::tx_cache_status_responses::Missing
Definition:
tx_cache_response.hpp:55
iroha::ametsuchi::tx_cache_status_responses::Rejected
Definition:
tx_cache_response.hpp:47
hash.hpp
iroha::ametsuchi::tx_cache_response_details::HashContainer
Definition:
tx_cache_response.hpp:25
irohad
ametsuchi
tx_cache_response.hpp
Generated by
1.8.13