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

Function DestroyDB

src/dbwrapper.cpp:39–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37static auto CharCast(const std::byte* data) { return reinterpret_cast<const char*>(data); }
38
39bool DestroyDB(const std::string& path_str)
40{
41 return leveldb::DestroyDB(path_str, {}).ok();
42}
43
44/** Handle database error by throwing dbwrapper_error exception.
45 */

Callers 2

EXCLUSIVE_LOCKS_REQUIREDFunction · 0.70
CDBWrapperMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected