6#ifndef OPENCBDC_TX_SRC_LOCKING_SHARD_MESSAGES_H_
7#define OPENCBDC_TX_SRC_LOCKING_SHARD_MESSAGES_H_
32 std::variant<lock_params, apply_params, discard_params>
m_params{};
58 = std::variant<lock_response, apply_response, discard_response>;
std::vector< tx > lock_params
Transactions whose outputs the locking shard should lock.
std::variant< lock_response, apply_response, discard_response > response
Response to a locking shard request.
std::vector< bool > apply_params
Vector of bools.
std::vector< bool > lock_response
Response from a lock command, a vector of flags indicating which transactions in the batch had their ...
std::array< unsigned char, cbdc::hash_size > hash_t
SHA256 hash container.
Empty type for the apply response.
constexpr auto operator==(const apply_response &) const -> bool
Empty type for discard command parameters.
constexpr auto operator==(const discard_params &) const -> bool
Empty type for the discard response.
constexpr auto operator==(const discard_response &) const -> bool
std::variant< lock_params, apply_params, discard_params > m_params
If the command is lock or apply, the parameters for these commands.
auto operator==(const request &rhs) const -> bool
hash_t m_dtx_id
The distributed transaction ID corresponding to the request.