OpenCBDC Transaction Processor
Loading...
Searching...
No Matches
uhs/atomizer/watchtower/messages.cpp
Go to the documentation of this file.
1// Copyright (c) 2021 MIT Digital Currency Initiative,
2// Federal Reserve Bank of Boston
3// Distributed under the MIT software license, see the accompanying
4// file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
6#include "messages.hpp"
7
9#include "watchtower.hpp"
10
11namespace cbdc {
12 auto
16 return packet << bbh_res.m_height;
17 }
18
22 return packet >> bbh_res.m_height;
23 }
24
28 return packet << req.m_req;
29 }
30
34 return packet << res.m_resp;
35 }
36}
Interface for serializing objects into and out of raw bytes representations.
Contains the watchtower's known best block height.
RPC request message to the watchtower external endpoint.
RPC response message from the watchtower external endpoint.
auto operator>>(serializer &deser, parsec::agent::rpc::request &req) -> serializer &
auto operator<<(serializer &ser, const parsec::agent::rpc::request &req) -> serializer &
Messages clients can use to communicate with the Watchtower.
Watchtower core functionality.