MCPcopy Create free account
hub / github.com/ElementsProject/elements / BDBDataFile

Function BDBDataFile

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

Source from the content-addressed store, hash-verified

61}
62
63fs::path BDBDataFile(const fs::path& wallet_path)
64{
65 if (fs::is_regular_file(wallet_path)) {
66 // Special case for backwards compatibility: if wallet path points to an
67 // existing file, treat it as the path to a BDB data file in a parent
68 // directory that also contains BDB log files.
69 return wallet_path;
70 } else {
71 // Normal case: Interpret wallet path as a directory path containing
72 // data and log files.
73 return wallet_path / "wallet.dat";
74 }
75}
76
77fs::path SQLiteDataFile(const fs::path& path)
78{

Callers 4

ListDatabasesFunction · 0.85
MakeBerkeleyDatabaseFunction · 0.85
MakeDatabaseFunction · 0.85
GetWalletEnvFunction · 0.85

Calls

no outgoing calls

Tested by 1

GetWalletEnvFunction · 0.68