Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
utxo_snapshot.h File Reference
#include <kernel/chainparams.h>
#include <kernel/cs_main.h>
#include <kernel/messagestartchars.h>
#include <sync.h>
#include <tinyformat.h>
#include <uint256.h>
#include <util/chaintype.h>
#include <util/fs.h>
#include <algorithm>
#include <array>
#include <cstdint>
#include <ios>
#include <optional>
#include <set>
#include <string>
#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

Namespaces

namespace  node

Functions

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

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"}
bool WriteSnapshotBaseBlockhash(Chainstate &snapshot_chainstate) EXCLUSIVE_LOCKS_REQUIRED(std::optional< uint256 > ReadSnapshotBaseBlockhash(fs::path chaindir) EXCLUSIVE_LOCKS_REQUIRED(constexpr std::string_vie node::SNAPSHOT_CHAINSTATE_SUFFIX ) = "_snapshot"

Variable Documentation

◆ SNAPSHOT_MAGIC_BYTES

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

Definition at line 28 of file utxo_snapshot.h.