Bitcoin
Classes | Variables
txdb.h File Reference
#include <coins.h>
#include <dbwrapper.h>
#include <chain.h>
#include <primitives/block.h>
#include <map>
#include <memory>
#include <string>
#include <utility>
#include <vector>

Go to the source code of this file.

Classes

class  CCoinsViewDB
 
class  CCoinsViewDBCursor
 
class  CBlockTreeDB
 

Variables

static constexpr int MAX_BLOCK_COINSDB_USAGE = 10
 No need to periodic flush if at least this much space still available. More...
 
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...
 

Variable Documentation

◆ MAX_BLOCK_COINSDB_USAGE

constexpr int MAX_BLOCK_COINSDB_USAGE = 10
static

No need to periodic flush if at least this much space still available.

◆ 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.

◆ nDefaultDbBatchSize

const int64_t nDefaultDbBatchSize = 16 << 20
static

-dbbatchsize default (bytes)

◆ nDefaultDbCache

const int64_t nDefaultDbCache = 450
static

-dbcache default (MiB)

◆ nMaxBlockDBCache

const int64_t nMaxBlockDBCache = 2
static

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

◆ nMaxCoinsDBCache

const int64_t nMaxCoinsDBCache = 8
static

Max memory allocated to coin DB specific cache (MiB)

◆ nMaxDbCache

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

max. -dbcache (MiB)

◆ nMaxTxIndexCache

const int64_t nMaxTxIndexCache = 1024
static

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

◆ nMinDbCache

const int64_t nMinDbCache = 4
static

min. -dbcache (MiB)