Changeset View
Changeset View
Standalone View
Standalone View
src/txdb.h
Show All 19 Lines | |||||
struct BlockHash; | struct BlockHash; | ||||
class CBlockIndex; | class CBlockIndex; | ||||
class CCoinsViewDBCursor; | class CCoinsViewDBCursor; | ||||
namespace Consensus { | namespace Consensus { | ||||
struct Params; | struct Params; | ||||
} | } | ||||
//! No need to periodic flush if at least this much space still available. | |||||
static constexpr int MAX_BLOCK_COINSDB_USAGE = 10; | |||||
//! min. -dbcache (MiB) | //! min. -dbcache (MiB) | ||||
static constexpr int64_t MIN_DB_CACHE_MB = 4; | static constexpr int64_t MIN_DB_CACHE_MB = 4; | ||||
//! max. -dbcache (MiB) | //! max. -dbcache (MiB) | ||||
static constexpr int64_t MAX_DB_CACHE_MB = sizeof(void *) > 4 ? 16384 : 1024; | static constexpr int64_t MAX_DB_CACHE_MB = sizeof(void *) > 4 ? 16384 : 1024; | ||||
//! -dbcache default (MiB) | //! -dbcache default (MiB) | ||||
static constexpr int64_t DEFAULT_DB_CACHE_MB = 1024; | static constexpr int64_t DEFAULT_DB_CACHE_MB = 1024; | ||||
//! -dbbatchsize default (bytes) | //! -dbbatchsize default (bytes) | ||||
static constexpr int64_t DEFAULT_DB_BATCH_SIZE = 16 << 20; | static constexpr int64_t DEFAULT_DB_BATCH_SIZE = 16 << 20; | ||||
▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines |