20 return rhs.m_uhs_ids == m_uhs_ids;
25 : m_uhs_ids(std::move(uhs_ids)) {}
37 return m_block_height;
46 return (rhs.m_status == m_status)
47 && (rhs.m_block_height == m_block_height)
48 && (rhs.m_uhs_id == m_uhs_id);
52 uint64_t block_height,
55 m_block_height(block_height),
69 return (rhs.m_states == m_states);
74 : m_states(std::move(states)) {}
Interface for serializing objects into and out of raw bytes representations.
Indicates a successful check request, sent with a StatusUpdateResponse.
auto states() const -> const tx_id_states &
Returns the states of a set of UHS IDs, following the order of the UHS IDs in the containing StatusUp...
status_request_check_success()=delete
auto operator==(const status_request_check_success &rhs) const -> bool
Network request to interact with the Watchtower's status update service.
auto uhs_ids() const -> const tx_id_uhs_ids &
UHS IDs for which the client would like to search.
auto operator==(const status_update_request &rhs) const -> bool
status_update_request()=delete
Represents the internal state of an ongoing status update request.
auto operator==(const status_update_state &rhs) const -> bool
status_update_state(search_status status, uint64_t block_height, hash_t uhs_id)
Constructor.
auto block_height() const -> uint64_t
Return the block height of the block containing the transaction in which the UHS ID was found.
auto status() const -> search_status
Returns the current SearchStatus of the StatusUpdate.
auto uhs_id() const -> hash_t
Returns the UHS ID for which the status is valid.
search_status
The current status of the Watchtower's progress in searching for a particular UHS ID.
std::unordered_map< hash_t, std::vector< hash_t >, hashing::const_sip_hash< hash_t > > tx_id_uhs_ids
Set of UHS IDs to query, keyed by Tx IDs.
std::unordered_map< hash_t, std::vector< status_update_state >, hashing::const_sip_hash< hash_t > > tx_id_states
Reported UHS ID states, keyed by Tx IDs.
std::array< unsigned char, cbdc::hash_size > hash_t
SHA256 hash container.