OpenCBDC Transaction Processor
Loading...
Searching...
No Matches
status_update_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 "status_update.hpp"
8
9namespace cbdc {
13 return packet << su_req.m_uhs_ids;
14 }
15
19 return packet >> su_req.m_uhs_ids;
20 }
21
25 return packet << static_cast<uint32_t>(state.m_status)
26 << state.m_block_height << state.m_uhs_id;
27 }
28
32 uint32_t status{};
33 packet >> status >> state.m_block_height >> state.m_uhs_id;
34 state.m_status = static_cast<cbdc::watchtower::search_status>(status);
35 return packet;
36 }
37
41 return packet << chs.m_states;
42 }
43
47 return packet >> chs.m_states;
48 }
49}
Interface for serializing objects into and out of raw bytes representations.
Indicates a successful check request, sent with a StatusUpdateResponse.
Network request to interact with the Watchtower's status update service.
Represents the internal state of an ongoing status update request.
search_status
The current status of the Watchtower's progress in searching for a particular UHS ID.
auto operator>>(serializer &deser, parsec::agent::rpc::request &req) -> serializer &
auto operator<<(serializer &ser, const parsec::agent::rpc::request &req) -> serializer &