Bitcoin ABC  0.24.7
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
SnapshotMetadata Class Reference

Metadata describing a serialized version of a UTXO set from which an assumeutxo CChainState can be constructed. More...

#include <utxo_snapshot.h>

Collaboration diagram for SnapshotMetadata:
[legend]

Public Member Functions

 SnapshotMetadata ()
 
 SnapshotMetadata (const BlockHash &base_blockhash, uint64_t coins_count, uint64_t nchaintx)
 
 SERIALIZE_METHODS (SnapshotMetadata, obj)
 

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...
 
uint64_t m_nchaintx = 0
 Necessary to "fake" the base nChainTx so that we can estimate progress during initial block download for the assumeutxo chainstate. More...
 

Detailed Description

Metadata describing a serialized version of a UTXO set from which an assumeutxo CChainState can be constructed.

Definition at line 14 of file utxo_snapshot.h.

Constructor & Destructor Documentation

◆ SnapshotMetadata() [1/2]

SnapshotMetadata::SnapshotMetadata ( )
inline

Definition at line 28 of file utxo_snapshot.h.

◆ SnapshotMetadata() [2/2]

SnapshotMetadata::SnapshotMetadata ( const BlockHash base_blockhash,
uint64_t  coins_count,
uint64_t  nchaintx 
)
inline

Definition at line 29 of file utxo_snapshot.h.

Member Function Documentation

◆ SERIALIZE_METHODS()

SnapshotMetadata::SERIALIZE_METHODS ( SnapshotMetadata  ,
obj   
)
inline

Definition at line 34 of file utxo_snapshot.h.

Member Data Documentation

◆ m_base_blockhash

BlockHash 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 18 of file utxo_snapshot.h.

◆ m_coins_count

uint64_t 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 22 of file utxo_snapshot.h.

◆ m_nchaintx

uint64_t SnapshotMetadata::m_nchaintx = 0

Necessary to "fake" the base nChainTx so that we can estimate progress during initial block download for the assumeutxo chainstate.

Definition at line 26 of file utxo_snapshot.h.


The documentation for this class was generated from the following file: