Metadata describing a serialized version of a UTXO set from which an assumeutxo Chainstate can be constructed.
More...
#include <utxo_snapshot.h>
Metadata describing a serialized version of a UTXO set from which an assumeutxo Chainstate can be constructed.
All metadata fields come from an untrusted file, so must be validated before being used. Thus, new fields should be added only if needed.
Definition at line 30 of file utxo_snapshot.h.
◆ SnapshotMetadata() [1/2]
node::SnapshotMetadata::SnapshotMetadata |
( |
| ) |
|
|
inline |
◆ SnapshotMetadata() [2/2]
node::SnapshotMetadata::SnapshotMetadata |
( |
const BlockHash & |
base_blockhash, |
|
|
uint64_t |
coins_count |
|
) |
| |
|
inline |
◆ Serialize()
template<typename Stream >
void node::SnapshotMetadata::Serialize |
( |
Stream & |
s | ) |
const |
|
inline |
◆ Unserialize()
template<typename Stream >
void node::SnapshotMetadata::Unserialize |
( |
Stream & |
s | ) |
|
|
inline |
◆ m_base_blockhash
BlockHash node::SnapshotMetadata::m_base_blockhash |
The hash of the block that reflects the tip of the chain for the UTXO set contained in this snapshot.
Definition at line 37 of file utxo_snapshot.h.
◆ m_coins_count
uint64_t node::SnapshotMetadata::m_coins_count = 0 |
The number of coins in the UTXO set contained in this snapshot.
Used during snapshot load to estimate progress of UTXO set reconstruction.
Definition at line 41 of file utxo_snapshot.h.
◆ m_supported_versions
const std::set<uint16_t> node::SnapshotMetadata::m_supported_versions {VERSION} |
|
private |
◆ VERSION
const uint16_t node::SnapshotMetadata::VERSION {2} |
|
inlinestaticprivate |
The documentation for this class was generated from the following file: