Interface for an asynchronous sentinel.
More...
#include <async_interface.hpp>
Interface for an asynchronous sentinel.
Definition at line 18 of file async_interface.hpp.
◆ execute_result_callback_type
Initial value: std::function<void(
std::optional<cbdc::sentinel::execute_response>)>
Callback function for transaction execution result.
Definition at line 32 of file async_interface.hpp.
◆ result_callback_type
◆ validate_result
Result of a validation operation.
Sentinel attestation for the given transaction or std::nullopt if the transaction was invalid.
Definition at line 49 of file async_interface.hpp.
◆ validate_result_callback_type
Callback function for providing a transaction validation result.
Definition at line 51 of file async_interface.hpp.
◆ ~async_interface()
virtual cbdc::sentinel::async_interface::~async_interface |
( |
| ) |
|
|
virtualdefault |
◆ async_interface() [1/3]
cbdc::sentinel::async_interface::async_interface |
( |
| ) |
|
|
default |
◆ async_interface() [2/3]
cbdc::sentinel::async_interface::async_interface |
( |
const async_interface & | | ) |
|
|
delete |
◆ async_interface() [3/3]
◆ execute_transaction()
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ validate_transaction()
Statically validate the given transaction and generate a sentinel attestation if the transaction is valid.
- Parameters
-
tx | transaction to validate and attest to. |
result_callback | function to call with the validation result. |
- Returns
- false if the implementation could not start validating the transaction.
Implemented in cbdc::sentinel_2pc::controller.
Referenced by cbdc::sentinel::rpc::async_server::async_server().
The documentation for this class was generated from the following file: