Bitcoin Core 28.99.0
P2P Digital Currency
Public Attributes | List of all members
AssumeutxoData Struct Reference

Holds configuration for use during UTXO snapshot load and validation. More...

#include <chainparams.h>

Collaboration diagram for AssumeutxoData:
[legend]

Public Attributes

int height
 
AssumeutxoHash hash_serialized
 The expected hash of the deserialized UTXO set. More...
 
uint64_t m_chain_tx_count
 Used to populate the m_chain_tx_count value, which is used during BlockManager::LoadBlockIndex(). More...
 
uint256 blockhash
 The hash of the base block for this snapshot. More...
 

Detailed Description

Holds configuration for use during UTXO snapshot load and validation.

The contents here are security critical, since they dictate which UTXO snapshots are recognized as valid.

Definition at line 47 of file chainparams.h.

Member Data Documentation

◆ blockhash

uint256 AssumeutxoData::blockhash

The hash of the base block for this snapshot.

Used to refer to assumeutxo data prior to having a loaded blockindex.

Definition at line 61 of file chainparams.h.

◆ hash_serialized

AssumeutxoHash AssumeutxoData::hash_serialized

The expected hash of the deserialized UTXO set.

Definition at line 51 of file chainparams.h.

◆ height

int AssumeutxoData::height

Definition at line 48 of file chainparams.h.

◆ m_chain_tx_count

uint64_t AssumeutxoData::m_chain_tx_count

Used to populate the m_chain_tx_count value, which is used during BlockManager::LoadBlockIndex().

We need to hardcode the value here because this is computed cumulatively using block data, which we do not necessarily have at the time of snapshot load.

Definition at line 57 of file chainparams.h.


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