OpenCBDC Transaction Processor
|
Data Structures | |
struct | apply_response |
Empty type for the apply response. More... | |
class | client |
RPC client for the mutable interface to a locking shard raft cluster. More... | |
struct | discard_params |
Empty type for discard command parameters. More... | |
struct | discard_response |
Empty type for the discard response. More... | |
struct | request |
Request to a shard. More... | |
class | status_client |
Client for interacting with the read-only port on 2PC shards. More... | |
class | status_server |
Server for handling TX and UHS ID status requests. More... | |
struct | tx_status_request |
RPC message for clients to use to request the status of a TX ID. More... | |
struct | uhs_status_request |
RPC message for clients to use to request the status of a UHS ID. More... | |
Typedefs | |
using | lock_params = std::vector<tx> |
Transactions whose outputs the locking shard should lock. | |
using | apply_params = std::vector<bool> |
Vector of bools. | |
using | lock_response = std::vector<bool> |
Response from a lock command, a vector of flags indicating which transactions in the batch had their relevant inputs successfully locked. | |
using | response = std::variant<lock_response, apply_response, discard_response> |
Response to a locking shard request. | |
using | status_request = std::variant<uhs_status_request, tx_status_request> |
Status request RPC message wrapper, holding either a UHS ID or TX ID query request. | |
using | status_response = bool |
Status response RPC messages indicating whether the shard contains given UHS or TX ID. | |
using cbdc::locking_shard::rpc::apply_params = std::vector<bool> |
Vector of bools.
True if the locking shard should complete the transaction at the same index in the previous batch. False if the locking shard should unlock the transaction.
Definition at line 17 of file uhs/twophase/locking_shard/messages.hpp.
using cbdc::locking_shard::rpc::lock_params = std::vector<tx> |
Transactions whose outputs the locking shard should lock.
Definition at line 13 of file uhs/twophase/locking_shard/messages.hpp.
using cbdc::locking_shard::rpc::lock_response = std::vector<bool> |
Response from a lock command, a vector of flags indicating which transactions in the batch had their relevant inputs successfully locked.
Definition at line 40 of file uhs/twophase/locking_shard/messages.hpp.
using cbdc::locking_shard::rpc::response = std::variant<lock_response, apply_response, discard_response> |
Response to a locking shard request.
Definition at line 57 of file uhs/twophase/locking_shard/messages.hpp.
using cbdc::locking_shard::rpc::status_request = std::variant<uhs_status_request, tx_status_request> |
Status request RPC message wrapper, holding either a UHS ID or TX ID query request.
Definition at line 28 of file status_messages.hpp.
using cbdc::locking_shard::rpc::status_response = bool |
Status response RPC messages indicating whether the shard contains given UHS or TX ID.
Definition at line 32 of file status_messages.hpp.