Bitcoin ABC
0.26.3
P2P Digital Currency
src
node
utxo_snapshot.h
Go to the documentation of this file.
1
// Copyright (c) 2009-2010 Satoshi Nakamoto
2
// Copyright (c) 2009-2019 The Bitcoin Core developers
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 BITCOIN_NODE_UTXO_SNAPSHOT_H
7
#define BITCOIN_NODE_UTXO_SNAPSHOT_H
8
9
#include <
primitives/blockhash.h
>
10
#include <
serialize.h
>
11
12
namespace
node
{
15
class
SnapshotMetadata
{
16
public
:
19
BlockHash
m_base_blockhash
;
20
23
uint64_t
m_coins_count
= 0;
24
25
SnapshotMetadata
() {}
26
SnapshotMetadata
(
const
BlockHash
&base_blockhash, uint64_t coins_count,
27
uint64_t nchaintx)
28
:
m_base_blockhash
(base_blockhash),
m_coins_count
(coins_count) {}
29
30
SERIALIZE_METHODS
(
SnapshotMetadata
, obj) {
31
READWRITE
(obj.m_base_blockhash, obj.m_coins_count);
32
}
33
};
34
}
// namespace node
35
36
#endif
// BITCOIN_NODE_UTXO_SNAPSHOT_H
blockhash.h
node::SnapshotMetadata
Metadata describing a serialized version of a UTXO set from which an assumeutxo Chainstate can be con...
Definition:
utxo_snapshot.h:15
node::SnapshotMetadata::SnapshotMetadata
SnapshotMetadata(const BlockHash &base_blockhash, uint64_t coins_count, uint64_t nchaintx)
Definition:
utxo_snapshot.h:26
node::SnapshotMetadata::m_coins_count
uint64_t m_coins_count
The number of coins in the UTXO set contained in this snapshot.
Definition:
utxo_snapshot.h:23
node::SnapshotMetadata::m_base_blockhash
BlockHash m_base_blockhash
The hash of the block that reflects the tip of the chain for the UTXO set contained in this snapshot.
Definition:
utxo_snapshot.h:19
node::SnapshotMetadata::SERIALIZE_METHODS
SERIALIZE_METHODS(SnapshotMetadata, obj)
Definition:
utxo_snapshot.h:30
node::SnapshotMetadata::SnapshotMetadata
SnapshotMetadata()
Definition:
utxo_snapshot.h:25
node
Definition:
init.h:28
serialize.h
READWRITE
#define READWRITE(...)
Definition:
serialize.h:180
BlockHash
A BlockHash is a unqiue identifier for a block.
Definition:
blockhash.h:13
Generated on Sun Mar 26 2023 03:04:11 for Bitcoin ABC by
1.9.1