6#ifndef OPENCBDC_TX_SRC_ARCHIVER_CLIENT_H_
7#define OPENCBDC_TX_SRC_ARCHIVER_CLIENT_H_
18 using response = std::optional<cbdc::atomizer::block>;
30 std::shared_ptr<logging::log> logger);
41 -> std::optional<cbdc::atomizer::block>;
46 std::shared_ptr<logging::log> m_logger;
Retrieves blocks from a remote archiver via the network.
auto init() -> bool
Attempts to connect to the archiver.
auto get_block(uint64_t height) -> std::optional< cbdc::atomizer::block >
Retrieves the block at the given height from the archiver.
Wrapper for a TCP socket.
std::optional< cbdc::atomizer::block > response
The requested block, or std::nullopt if not found.
uint64_t request
Height of the block to fetch from the archiver.
std::pair< ip_address, port_number_t > endpoint_t
[host name, port number].