|
OpenCBDC Transaction Processor
|
RPC request message to the watchtower external endpoint. More...
#include <watchtower.hpp>
Public Types | |
| using | request_t = std::variant<status_update_request, best_block_height_request> |
Public Member Functions | |
| auto | operator== (const request &rhs) const -> bool |
| request ()=delete | |
| request (request_t req) | |
| Constructor. | |
| request (cbdc::serializer &pkt) | |
| Construct from a packet. | |
| auto | payload () const -> const request_t & |
| Return the request payload. | |
Friends | |
| auto | cbdc::operator<< (cbdc::serializer &packet, const cbdc::watchtower::request &req) -> cbdc::serializer & |
RPC request message to the watchtower external endpoint.
Definition at line 66 of file watchtower.hpp.
| using cbdc::watchtower::request::request_t = std::variant<status_update_request, best_block_height_request> |
Definition at line 76 of file watchtower.hpp.
|
delete |
|
explicit |
|
explicit |
Construct from a packet.
| pkt | packet containing a serialized request. |
Definition at line 196 of file watchtower.cpp.
| auto cbdc::watchtower::request::operator== | ( | const request & | rhs | ) | const -> bool |
Definition at line 190 of file watchtower.cpp.
|
nodiscard |
|
friend |