OpenCBDC Transaction Processor
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
block.hpp
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#ifndef OPENCBDC_TX_SRC_ATOMIZER_BLOCK_H_
7#define OPENCBDC_TX_SRC_ATOMIZER_BLOCK_H_
8
11
12#include <cassert>
13#include <cstddef>
14#include <limits>
15#include <vector>
16
17namespace cbdc::atomizer {
19 struct block {
20 auto operator==(const block& rhs) const -> bool;
21
24 uint64_t m_height{};
26 std::vector<transaction::compact_tx> m_transactions;
27 };
28}
29
30#endif // OPENCBDC_TX_SRC_ATOMIZER_BLOCK_H_
Batch of compact transactions settled by the atomizer.
Definition block.hpp:19
auto operator==(const block &rhs) const -> bool
Definition block.cpp:8
std::vector< transaction::compact_tx > m_transactions
Compact transactions settled by the atomizer in this block.
Definition block.hpp:26
uint64_t m_height
Index of this block in the overall contiguous sequence of blocks from the first block starting at hei...
Definition block.hpp:24