MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / DB

Method DB

src/index/base.cpp:68–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68BaseIndex::DB::DB(const fs::path& path, size_t n_cache_size, bool f_memory, bool f_wipe, bool f_obfuscate) :
69 CDBWrapper{DBParams{
70 .path = path,
71 .cache_bytes = n_cache_size,
72 .memory_only = f_memory,
73 .wipe_data = f_wipe,
74 .obfuscate = f_obfuscate,
75 .options = [] { DBOptions options; node::ReadDatabaseArgs(gArgs, options); return options; }()}}
76{}
77
78CBlockLocator BaseIndex::DB::ReadBestBlock() const
79{

Callers

nothing calls this directly

Calls 1

ReadDatabaseArgsFunction · 0.50

Tested by

no test coverage detected