OpenCBDC Transaction Processor
Loading...
Searching...
No Matches
uhs/atomizer/atomizer/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
8
namespace
cbdc::atomizer
{
9
auto
tx_notify_request::operator==
(
const
tx_notify_request
& rhs)
const
10
->
bool
{
11
return
(rhs.m_tx == m_tx) && (rhs.m_attestations == m_attestations)
12
&& (rhs.m_block_height == m_block_height);
13
}
14
15
auto
aggregate_tx_notification::operator==
(
16
const
aggregate_tx_notification
& rhs)
const
->
bool
{
17
return
(rhs.m_oldest_attestation == m_oldest_attestation)
18
&& (rhs.m_tx == m_tx);
19
}
20
21
auto
aggregate_tx_notify_request::operator==
(
22
const
aggregate_tx_notify_request
& rhs)
const
->
bool
{
23
return
rhs.m_agg_txs == m_agg_txs;
24
}
25
}
cbdc::atomizer
Definition
atomizer.cpp:13
cbdc::atomizer::aggregate_tx_notification
Transaction notification message with a full set of input attestations.
Definition
uhs/atomizer/atomizer/messages.hpp:43
cbdc::atomizer::aggregate_tx_notification::operator==
auto operator==(const aggregate_tx_notification &rhs) const -> bool
Definition
uhs/atomizer/atomizer/messages.cpp:15
cbdc::atomizer::aggregate_tx_notify_request
Batch of aggregate transaction notifications.
Definition
uhs/atomizer/atomizer/messages.hpp:57
cbdc::atomizer::aggregate_tx_notify_request::operator==
auto operator==(const aggregate_tx_notify_request &rhs) const -> bool
Definition
uhs/atomizer/atomizer/messages.cpp:21
cbdc::atomizer::tx_notify_request
Transaction notification message.
Definition
uhs/atomizer/atomizer/messages.hpp:21
cbdc::atomizer::tx_notify_request::operator==
auto operator==(const tx_notify_request &rhs) const -> bool
Definition
uhs/atomizer/atomizer/messages.cpp:9
messages.hpp
src
uhs
atomizer
atomizer
messages.cpp
Generated by
1.12.0