OpenCBDC Transaction Processor
|
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 & |
Contains the watchtower's known best block height.
Definition at line 33 of file watchtower.hpp.
|
delete |
|
explicit |
Constructor.
height | block height to include in the response. |
Definition at line 179 of file watchtower.cpp.
|
explicit |
Construct from a packet.
pkt | packet containing a serialized BestBlockHeightResponse. |
Definition at line 182 of file watchtower.cpp.
|
nodiscard |
Returns the states of a set of UHS IDs, following the order of the UHS IDs in the containing StatusUpdateResponse.
Definition at line 186 of file watchtower.cpp.
auto cbdc::watchtower::best_block_height_response::operator== | ( | const best_block_height_response & | rhs | ) | const -> bool |
Definition at line 174 of file watchtower.cpp.
|
friend |
|
friend |