![]() |
Bitcoin ABC 0.33.12
P2P Digital Currency
|
Metadata describing a serialized version of a UTXO set from which an assumeutxo Chainstate can be constructed. More...
#include <utxo_snapshot.h>
Public Member Functions | |
| SnapshotMetadata (const CMessageHeader::MessageMagic network_magic) | |
| SnapshotMetadata (const CMessageHeader::MessageMagic network_magic, const BlockHash &base_blockhash, uint64_t coins_count) | |
| template<typename Stream > | |
| void | Serialize (Stream &s) const |
| template<typename Stream > | |
| void | Unserialize (Stream &s) |
Public Attributes | |
| BlockHash | m_base_blockhash |
| The hash of the block that reflects the tip of the chain for the UTXO set contained in this snapshot. More... | |
| uint64_t | m_coins_count = 0 |
| The number of coins in the UTXO set contained in this snapshot. More... | |
Private Attributes | |
| const std::set< uint16_t > | m_supported_versions {VERSION} |
| const CMessageHeader::MessageMagic | m_network_magic |
Static Private Attributes | |
| static const uint16_t | VERSION {2} |
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 31 of file utxo_snapshot.h.
|
inline |
Definition at line 45 of file utxo_snapshot.h.
|
inline |
Definition at line 47 of file utxo_snapshot.h.
|
inline |
Definition at line 52 of file utxo_snapshot.h.
|
inline |
| 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 39 of file utxo_snapshot.h.
| 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 43 of file utxo_snapshot.h.
|
private |
Definition at line 34 of file utxo_snapshot.h.
|
private |
Definition at line 33 of file utxo_snapshot.h.
|
inlinestaticprivate |
Definition at line 32 of file utxo_snapshot.h.