OpenCBDC Transaction Processor
Loading...
Searching...
No Matches
cbdc::watchtower::best_block_height_response Class Reference

Contains the watchtower's known best block height. More...

#include <watchtower.hpp>

Public Member Functions

auto operator== (const best_block_height_response &rhs) const -> bool
 
 best_block_height_response ()=delete
 
 best_block_height_response (uint64_t height)
 Constructor.
 
 best_block_height_response (cbdc::serializer &pkt)
 Construct from a packet.
 
auto height () const -> uint64_t
 Returns the states of a set of UHS IDs, following the order of the UHS IDs in the containing StatusUpdateResponse.
 

Friends

auto cbdc::operator<< (cbdc::serializer &packet, const cbdc::watchtower::best_block_height_response &bbh_res) -> cbdc::serializer &
 
auto cbdc::operator>> (cbdc::serializer &packet, cbdc::watchtower::best_block_height_response &bbh_res) -> cbdc::serializer &
 

Detailed Description

Contains the watchtower's known best block height.

See also
cbdc::watchtower::BestBlockHeightRequest.

Definition at line 33 of file watchtower.hpp.

Constructor & Destructor Documentation

◆ best_block_height_response() [1/3]

cbdc::watchtower::best_block_height_response::best_block_height_response ( )
delete

◆ best_block_height_response() [2/3]

cbdc::watchtower::best_block_height_response::best_block_height_response ( uint64_t height)
explicit

Constructor.

Parameters
heightblock height to include in the response.

Definition at line 179 of file watchtower.cpp.

◆ best_block_height_response() [3/3]

cbdc::watchtower::best_block_height_response::best_block_height_response ( cbdc::serializer & pkt)
explicit

Construct from a packet.

Parameters
pktpacket containing a serialized BestBlockHeightResponse.

Definition at line 182 of file watchtower.cpp.

Member Function Documentation

◆ height()

auto cbdc::watchtower::best_block_height_response::height ( ) const -> uint64_t
nodiscard

Returns the states of a set of UHS IDs, following the order of the UHS IDs in the containing StatusUpdateResponse.

Returns
the watchtower's best block height.

Definition at line 186 of file watchtower.cpp.

◆ operator==()

auto cbdc::watchtower::best_block_height_response::operator== ( const best_block_height_response & rhs) const -> bool

Definition at line 174 of file watchtower.cpp.

Friends And Related Symbol Documentation

◆ cbdc::operator<<

auto cbdc::operator<< ( cbdc::serializer & packet,
const cbdc::watchtower::best_block_height_response & bbh_res ) -> cbdc::serializer &
friend

◆ cbdc::operator>>

auto cbdc::operator>> ( cbdc::serializer & packet,
cbdc::watchtower::best_block_height_response & bbh_res ) -> cbdc::serializer &
friend

The documentation for this class was generated from the following files: