Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
Classes | Namespaces | Functions | Variables
txdb.h File Reference
#include <blockfileinfo.h>
#include <coins.h>
#include <dbwrapper.h>
#include <flatfile.h>
#include <kernel/cs_main.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  CCoinsViewDBCursor
 Specialization of CCoinsViewCursor to iterate over a CCoinsViewDB. More...
 
class  CBlockTreeDB
 Access to the block database (blocks/index/) More...
 

Namespaces

namespace  Consensus
 

Functions

util::Result< voidCheckLegacyTxindex (CBlockTreeDB &block_tree_db)
 

Variables

static constexpr int64_t MIN_DB_CACHE_MB = 4
 min. -dbcache (MiB)
 
static constexpr int64_t MAX_DB_CACHE_MB = sizeof(void *) > 4 ? 16384 : 1024
 max. -dbcache (MiB)
 
static constexpr int64_t DEFAULT_DB_CACHE_MB = 1024
 -dbcache default (MiB)
 
static constexpr int64_t DEFAULT_DB_BATCH_SIZE = 16 << 20
 -dbbatchsize default (bytes)
 
static constexpr int64_t MAX_BLOCK_DB_CACHE_MB = 2
 Max memory allocated to block tree DB specific cache, if no -txindex (MiB)
 
static constexpr int64_t MAX_TX_INDEX_CACHE_MB = 1024
 Max memory allocated to block tree DB specific cache, if -txindex (MiB)
 
static constexpr int64_t MAX_FILTER_INDEX_CACHE_MB = 1024
 Max memory allocated to all block filter index caches combined in MiB.
 
static constexpr int64_t MAX_COINS_DB_CACHE_MB = 8
 Max memory allocated to coin DB specific cache (MiB)
 

Function Documentation

◆ CheckLegacyTxindex()

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

Definition at line 37 of file txdb.cpp.

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

Variable Documentation

◆ DEFAULT_DB_BATCH_SIZE

constexpr int64_t DEFAULT_DB_BATCH_SIZE = 16 << 20
staticconstexpr

-dbbatchsize default (bytes)

Definition at line 42 of file txdb.h.

◆ DEFAULT_DB_CACHE_MB

constexpr int64_t DEFAULT_DB_CACHE_MB = 1024
staticconstexpr

-dbcache default (MiB)

Definition at line 40 of file txdb.h.

◆ MAX_BLOCK_DB_CACHE_MB

constexpr int64_t MAX_BLOCK_DB_CACHE_MB = 2
staticconstexpr

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

Definition at line 44 of file txdb.h.

◆ MAX_COINS_DB_CACHE_MB

constexpr int64_t MAX_COINS_DB_CACHE_MB = 8
staticconstexpr

Max memory allocated to coin DB specific cache (MiB)

Definition at line 53 of file txdb.h.

◆ MAX_DB_CACHE_MB

constexpr int64_t MAX_DB_CACHE_MB = sizeof(void *) > 4 ? 16384 : 1024
staticconstexpr

max. -dbcache (MiB)

Definition at line 38 of file txdb.h.

◆ MAX_FILTER_INDEX_CACHE_MB

constexpr int64_t MAX_FILTER_INDEX_CACHE_MB = 1024
staticconstexpr

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

Definition at line 51 of file txdb.h.

◆ MAX_TX_INDEX_CACHE_MB

constexpr int64_t MAX_TX_INDEX_CACHE_MB = 1024
staticconstexpr

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

Definition at line 49 of file txdb.h.

◆ MIN_DB_CACHE_MB

constexpr int64_t MIN_DB_CACHE_MB = 4
staticconstexpr

min. -dbcache (MiB)

Definition at line 36 of file txdb.h.