Bitcoin Core  25.99.0
P2P Digital Currency
Classes | Namespaces | Functions | Variables
txdb.h File Reference
#include <coins.h>
#include <dbwrapper.h>
#include <kernel/cs_main.h>
#include <sync.h>
#include <util/fs.h>
#include <util/result.h>
#include <cstddef>
#include <cstdint>
#include <functional>
#include <memory>
#include <optional>
#include <string>
#include <utility>
#include <vector>
Include dependency graph for txdb.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CoinsViewOptions
 User-controlled performance and debug options. More...
 
class  CCoinsViewDB
 CCoinsView backed by the coin database (chainstate/) More...
 
class  CBlockTreeDB
 Access to the block database (blocks/index/) More...
 

Namespaces

 Consensus
 Transaction validation functions.
 

Functions

util::Result< void > CheckLegacyTxindex (CBlockTreeDB &block_tree_db)
 

Variables

static const int64_t nDefaultDbCache = 450
 -dbcache default (MiB) More...
 
static const int64_t nDefaultDbBatchSize = 16 << 20
 -dbbatchsize default (bytes) More...
 
static const int64_t nMaxDbCache = sizeof(void*) > 4 ? 16384 : 1024
 max. -dbcache (MiB) More...
 
static const int64_t nMinDbCache = 4
 min. -dbcache (MiB) More...
 
static const int64_t nMaxBlockDBCache = 2
 Max memory allocated to block tree DB specific cache, if no -txindex (MiB) More...
 
static const int64_t nMaxTxIndexCache = 1024
 Max memory allocated to block tree DB specific cache, if -txindex (MiB) More...
 
static const int64_t max_filter_index_cache = 1024
 Max memory allocated to all block filter index caches combined in MiB. More...
 
static const int64_t nMaxCoinsDBCache = 8
 Max memory allocated to coin DB specific cache (MiB) More...
 

Function Documentation

◆ CheckLegacyTxindex()

util::Result<void> CheckLegacyTxindex ( CBlockTreeDB block_tree_db)

Definition at line 34 of file txdb.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ max_filter_index_cache

const int64_t max_filter_index_cache = 1024
static

Max memory allocated to all block filter index caches combined in MiB.

Definition at line 48 of file txdb.h.

◆ nDefaultDbBatchSize

const int64_t nDefaultDbBatchSize = 16 << 20
static

-dbbatchsize default (bytes)

Definition at line 36 of file txdb.h.

◆ nDefaultDbCache

const int64_t nDefaultDbCache = 450
static

-dbcache default (MiB)

Definition at line 34 of file txdb.h.

◆ nMaxBlockDBCache

const int64_t nMaxBlockDBCache = 2
static

Max memory allocated to block tree DB specific cache, if no -txindex (MiB)

Definition at line 42 of file txdb.h.

◆ nMaxCoinsDBCache

const int64_t nMaxCoinsDBCache = 8
static

Max memory allocated to coin DB specific cache (MiB)

Definition at line 50 of file txdb.h.

◆ nMaxDbCache

const int64_t nMaxDbCache = sizeof(void*) > 4 ? 16384 : 1024
static

max. -dbcache (MiB)

Definition at line 38 of file txdb.h.

◆ nMaxTxIndexCache

const int64_t nMaxTxIndexCache = 1024
static

Max memory allocated to block tree DB specific cache, if -txindex (MiB)

Definition at line 46 of file txdb.h.

◆ nMinDbCache

const int64_t nMinDbCache = 4
static

min. -dbcache (MiB)

Definition at line 40 of file txdb.h.