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

Function MakeWalletDatabase

src/wallet/wallet.cpp:2965–2974  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2963}
2964
2965std::unique_ptr<WalletDatabase> MakeWalletDatabase(const std::string& name, const DatabaseOptions& options, DatabaseStatus& status, bilingual_str& error_string)
2966{
2967 const auto& wallet_path = GetWalletPath(name);
2968 if (!wallet_path) {
2969 error_string = util::ErrorString(wallet_path);
2970 status = DatabaseStatus::FAILED_BAD_PATH;
2971 return nullptr;
2972 }
2973 return MakeDatabase(*wallet_path, options, status, error_string);
2974}
2975
2976bool CWallet::LoadWalletArgs(std::shared_ptr<CWallet> wallet, const WalletContext& context, bilingual_str& error, std::vector<bilingual_str>& warnings)
2977{

Callers 12

ExportWatchOnlyWalletFunction · 0.85
LoadWalletInternalFunction · 0.85
CreateWalletFunction · 0.85
wallet.cppFile · 0.85
VerifyWalletsFunction · 0.85
LoadWalletsFunction · 0.85
isEncryptedMethod · 0.85
TestLoadWalletFunction · 0.85
TestCreateWalletFunction · 0.85
TestLoadWalletFunction · 0.85
WalletLoadingDescriptorsFunction · 0.85

Calls 3

GetWalletPathFunction · 0.85
ErrorStringFunction · 0.85
MakeDatabaseFunction · 0.85

Tested by 3

TestLoadWalletFunction · 0.68
TestCreateWalletFunction · 0.68
TestLoadWalletFunction · 0.68