BaseIndex::DB::DB

Open the index database at the given path.

Synopsis

Declared in <index/base.h>

DB(
    fs::path const& path,
    size_t n_cache_size,
    bool f_memory = false,
    bool f_wipe = false,
    bool f_obfuscate = false,
    bool f_bloom = true);

Parameters

NameDescription
pathDirectory where the database is stored.
n_cache_sizeSize of the LevelDB in-memory cache, in bytes.
f_memoryKeep the database in memory instead of on disk.
f_wipeErase any existing database before opening.
f_obfuscateObfuscate the on-disk data with a random key.
f_bloomEnable the LevelDB bloom filter.