OpenCBDC Transaction Processor
|
Namespaces | |
namespace | rpc |
Data Structures | |
class | async_interface |
Interface for an asynchronous sentinel. More... | |
class | controller |
Sentinel implementation. More... | |
struct | execute_request |
Sentinel request message. More... | |
struct | execute_response |
Sentinel response message. More... | |
class | interface |
Interface for a sentinel. More... | |
struct | shard_info |
Sentinel-specific representation of shard network information. More... | |
struct | validate_request |
Request type for transaction validation and attestation. More... | |
Typedefs | |
using | validate_response = transaction::sentinel_attestation |
Response type from transaction validation, a sentinel attestation on the given transaction. | |
using | request = std::variant<execute_request, validate_request> |
Sentinel RPC request type. | |
using | response = std::variant<execute_response, validate_response> |
Sentinel RPC response type. | |
Enumerations | |
enum class | tx_status { pending , static_invalid , state_invalid , confirmed } |
Status of the transaction following sentinel processing. More... | |
Functions | |
auto | to_string (tx_status status) -> std::string |
Return a human-readable string describing a tx_status. | |
using cbdc::sentinel::request = std::variant<execute_request, validate_request> |
Sentinel RPC request type.
Either a transaction execution or validation request.
Definition at line 70 of file uhs/sentinel/interface.hpp.
using cbdc::sentinel::response = std::variant<execute_response, validate_response> |
Sentinel RPC response type.
Either a transaction execution or validation response.
Definition at line 73 of file uhs/sentinel/interface.hpp.
Response type from transaction validation, a sentinel attestation on the given transaction.
Definition at line 66 of file uhs/sentinel/interface.hpp.
|
strong |
Status of the transaction following sentinel processing.
Definition at line 18 of file uhs/sentinel/interface.hpp.
auto cbdc::sentinel::to_string | ( | tx_status | status | ) | -> std::string |
Return a human-readable string describing a tx_status.
status | tx_status to print. |
Definition at line 15 of file uhs/sentinel/interface.cpp.
References confirmed, pending, state_invalid, and static_invalid.
Referenced by print_tx_result(), and cbdc::client::send_transaction().