OpenCBDC Transaction Processor
|
Retrieves blocks from a remote archiver via the network. More...
#include <client.hpp>
Public Member Functions | |
client (network::endpoint_t endpoint, std::shared_ptr< logging::log > logger) | |
Constructor. | |
client ()=delete | |
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. | |
Retrieves blocks from a remote archiver via the network.
Definition at line 24 of file uhs/atomizer/archiver/client.hpp.
cbdc::archiver::client::client | ( | network::endpoint_t | endpoint, |
std::shared_ptr< logging::log > | logger ) |
Constructor.
endpoint | archiver endpoint with which to connect. |
logger | pointer to shared logger. |
Definition at line 14 of file uhs/atomizer/archiver/client.cpp.
|
delete |
auto cbdc::archiver::client::get_block | ( | uint64_t | height | ) | -> std::optional<cbdc::atomizer::block> |
Retrieves the block at the given height from the archiver.
height | height of the block to retrieve. |
Definition at line 23 of file uhs/atomizer/archiver/client.cpp.
References cbdc::from_buffer().
auto cbdc::archiver::client::init | ( | ) | -> bool |
Attempts to connect to the archiver.
Definition at line 19 of file uhs/atomizer/archiver/client.cpp.