Bitcoin Core
24.1.0
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-2021 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 <
uint256.h
>
10
#include <
serialize.h
>
11
12
namespace
node
{
15
class
SnapshotMetadata
16
{
17
public
:
20
uint256
m_base_blockhash
;
21
24
uint64_t
m_coins_count
= 0;
25
26
SnapshotMetadata
() { }
27
SnapshotMetadata
(
28
const
uint256
& base_blockhash,
29
uint64_t coins_count,
30
unsigned
int
nchaintx) :
31
m_base_blockhash
(base_blockhash),
32
m_coins_count
(coins_count) { }
33
34
SERIALIZE_METHODS
(
SnapshotMetadata
, obj) {
READWRITE
(obj.m_base_blockhash, obj.m_coins_count); }
35
};
36
}
// namespace node
37
38
#endif // BITCOIN_NODE_UTXO_SNAPSHOT_H
node::SnapshotMetadata::SnapshotMetadata
SnapshotMetadata(const uint256 &base_blockhash, uint64_t coins_count, unsigned int nchaintx)
Definition:
utxo_snapshot.h:27
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:24
serialize.h
node::SnapshotMetadata::SnapshotMetadata
SnapshotMetadata()
Definition:
utxo_snapshot.h:26
node::SnapshotMetadata::SERIALIZE_METHODS
SERIALIZE_METHODS(SnapshotMetadata, obj)
Definition:
utxo_snapshot.h:34
node
Definition:
init.h:25
node::SnapshotMetadata::m_base_blockhash
uint256 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:20
uint256
256-bit opaque blob.
Definition:
uint256.h:119
uint256.h
READWRITE
#define READWRITE(...)
Definition:
serialize.h:140
node::SnapshotMetadata
Metadata describing a serialized version of a UTXO set from which an assumeutxo Chainstate can be con...
Definition:
utxo_snapshot.h:15
Generated on Tue May 16 2023 12:00:00 for Bitcoin Core by
1.8.14