Bitcoin Core 32.1.0
P2P Digital Currency
Loading...
Searching...
No Matches
DBParams Struct Reference

Application-specific storage settings. More...

#include <dbwrapper.h>

Collaboration diagram for DBParams:
[legend]

Public Attributes

fs::path path
 Location in the filesystem where leveldb data will be stored.
uint64_t cache_bytes
 Configures various leveldb cache settings.
bool memory_only = false
 If true, use leveldb's memory environment.
bool wipe_data = false
 If true, remove all existing data.
bool obfuscate = false
bool bloom_filter = true
 If true, build a LevelDB bloom filter to accelerate point lookups.
DBOptions options {}
 Passed-through options.
leveldb::Env * testing_env = nullptr
size_t max_file_size = DBWRAPPER_MAX_FILE_SIZE

Detailed Description

Application-specific storage settings.

Definition at line 42 of file dbwrapper.h.

Member Data Documentation

◆ bloom_filter

bool DBParams::bloom_filter = true

If true, build a LevelDB bloom filter to accelerate point lookups.

Definition at line 55 of file dbwrapper.h.

◆ cache_bytes

uint64_t DBParams::cache_bytes

Configures various leveldb cache settings.

Definition at line 46 of file dbwrapper.h.

◆ max_file_size

size_t DBParams::max_file_size = DBWRAPPER_MAX_FILE_SIZE

Maximum LevelDB SST file size. Larger values reduce the frequency of compactions but increase their duration.

Definition at line 63 of file dbwrapper.h.

◆ memory_only

bool DBParams::memory_only = false

If true, use leveldb's memory environment.

Definition at line 48 of file dbwrapper.h.

◆ obfuscate

bool DBParams::obfuscate = false

If true, store data obfuscated via simple XOR. If false, XOR with a zero'd byte array.

Definition at line 53 of file dbwrapper.h.

◆ options

DBOptions DBParams::options {}

Passed-through options.

Definition at line 57 of file dbwrapper.h.

◆ path

fs::path DBParams::path

Location in the filesystem where leveldb data will be stored.

Definition at line 44 of file dbwrapper.h.

◆ testing_env

leveldb::Env* DBParams::testing_env = nullptr

If non-null, use this as the leveldb::Env instead of the default. Caller retains ownership.

Definition at line 60 of file dbwrapper.h.

◆ wipe_data

bool DBParams::wipe_data = false

If true, remove all existing data.

Definition at line 50 of file dbwrapper.h.


The documentation for this struct was generated from the following file: