Bitcoin Core 28.99.0
P2P Digital Currency
Classes | Namespaces | Functions | Variables
utxo_snapshot.h File Reference
#include <chainparams.h>
#include <kernel/chainparams.h>
#include <kernel/cs_main.h>
#include <serialize.h>
#include <sync.h>
#include <uint256.h>
#include <util/chaintype.h>
#include <util/check.h>
#include <util/fs.h>
#include <cstdint>
#include <optional>
#include <string_view>
Include dependency graph for utxo_snapshot.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  node::SnapshotMetadata
 Metadata describing a serialized version of a UTXO set from which an assumeutxo Chainstate can be constructed. More...
 

Namespaces

namespace  node
 

Functions

std::optional< fs::pathnode::FindSnapshotChainstateDir (const fs::path &data_dir)
 Return a path to the snapshot-based chainstate dir, if one exists. More...
 

Variables

static constexpr std::array< uint8_t, 5 > SNAPSHOT_MAGIC_BYTES = {'u', 't', 'x', 'o', 0xff}
 
const fs::path node::SNAPSHOT_BLOCKHASH_FILENAME {"base_blockhash"}
 The file in the snapshot chainstate dir which stores the base blockhash. More...
 
bool WriteSnapshotBaseBlockhash(Chainstate &snapshot_chainstate) EXCLUSIVE_LOCKS_REQUIRED(std::optional< uint256 > ReadSnapshotBaseBlockhash(fs::path chaindir) EXCLUSIVE_LOCKS_REQUIRED(constexpr std::string_view node::SNAPSHOT_CHAINSTATE_SUFFIX = "_snapshot"
 Write out the blockhash of the snapshot base block that was used to construct this chainstate. More...
 

Variable Documentation

◆ SNAPSHOT_MAGIC_BYTES

constexpr std::array<uint8_t, 5> SNAPSHOT_MAGIC_BYTES = {'u', 't', 'x', 'o', 0xff}
staticconstexpr

Definition at line 24 of file utxo_snapshot.h.