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

Function TestLoadWallet

src/wallet/test/util.cpp:76–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74
75
76std::shared_ptr<CWallet> TestLoadWallet(std::unique_ptr<WalletDatabase> database, WalletContext& context)
77{
78 bilingual_str error;
79 std::vector<bilingual_str> warnings;
80 auto wallet = CWallet::LoadExisting(context, "", std::move(database), error, warnings);
81 NotifyWalletLoaded(context, wallet);
82 if (context.chain) {
83 wallet->postInitProcess();
84 }
85 return wallet;
86}
87
88std::shared_ptr<CWallet> TestLoadWallet(WalletContext& context)
89{

Callers 1

WalletLoadingDescriptorsFunction · 0.50

Calls 3

NotifyWalletLoadedFunction · 0.85
MakeWalletDatabaseFunction · 0.85
postInitProcessMethod · 0.80

Tested by

no test coverage detected