6#ifndef OPENCBDC_TX_SRC_SENTINEL_CLIENT_H_
7#define OPENCBDC_TX_SRC_SENTINEL_CLIENT_H_
22 client(std::vector<network::endpoint_t> endpoints,
23 std::shared_ptr<logging::log> logger);
38 auto init(std::optional<bool> error_fatal = std::nullopt) -> bool;
42 = std::optional<cbdc::sentinel::execute_response>;
83 std::shared_ptr<logging::log> m_logger;
Implements an RPC client over TCP sockets.
Interface for an asynchronous sentinel.
Interface for a sentinel.
TCP RPC client for sentinels.
std::optional< validate_response > validate_result_type
Return type from transaction validation.
~client() override=default
auto validate_transaction(transaction::full_tx tx) -> validate_result_type override
Send a transaction to the sentinel for validation and return the response.
auto operator=(const client &) -> client &=delete
auto init(std::optional< bool > error_fatal=std::nullopt) -> bool
Initializes the client.
std::optional< cbdc::sentinel::execute_response > execute_result_type
Result type from execute_transaction.
auto operator=(client &&) -> client &=delete
client(const client &)=delete
auto execute_transaction(transaction::full_tx tx) -> execute_result_type override
Send a transaction to the sentinel and return the response.
Tools for reading options from a configuration file and building application-specific parameter sets ...
Project-wide configuration options.