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

Function BDBDataFile

src/wallet/db.cpp:75–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75fs::path BDBDataFile(const fs::path& wallet_path)
76{
77 if (fs::is_regular_file(wallet_path)) {
78 // Special case for backwards compatibility: if wallet path points to an
79 // existing file, treat it as the path to a BDB data file in a parent
80 // directory that also contains BDB log files.
81 return wallet_path;
82 } else {
83 // Normal case: Interpret wallet path as a directory path containing
84 // data and log files.
85 return wallet_path / "wallet.dat";
86 }
87}
88
89fs::path SQLiteDataFile(const fs::path& path)
90{

Callers 6

ListDatabasesFunction · 0.85
ExecuteWalletToolFuncFunction · 0.85
BackupMethod · 0.85
MakeBerkeleyRODatabaseFunction · 0.85
MakeDatabaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected