OpenCBDC Transaction Processor
Loading...
Searching...
No Matches
status_messages.hpp
Go to the documentation of this file.
1// Copyright (c) 2021 MIT Digital Currency Initiative,
2// Federal Reserve Bank of Boston
3// Distributed under the MIT software license, see the accompanying
4// file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
6#ifndef OPENCBDC_TX_SRC_LOCKING_SHARD_STATUS_MESSAGES_H_
7#define OPENCBDC_TX_SRC_LOCKING_SHARD_STATUS_MESSAGES_H_
8
10
11#include <variant>
12
19
25
28 using status_request = std::variant<uhs_status_request, tx_status_request>;
29
32 using status_response = bool;
33}
34
35#endif
bool status_response
Status response RPC messages indicating whether the shard contains given UHS or TX ID.
std::variant< uhs_status_request, tx_status_request > status_request
Status request RPC message wrapper, holding either a UHS ID or TX ID query request.
std::array< unsigned char, cbdc::hash_size > hash_t
SHA256 hash container.
RPC message for clients to use to request the status of a TX ID.
RPC message for clients to use to request the status of a UHS ID.