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

Function WalletToolReleaseWallet

src/wallet/dump.cpp:110–115  ·  view source on GitHub ↗

The standard wallet deleter function blocks on the validation interface queue, which doesn't exist for the bitcoin-wallet. Define our own deleter here.

Source from the content-addressed store, hash-verified

108// queue, which doesn't exist for the bitcoin-wallet. Define our own
109// deleter here.
110static void WalletToolReleaseWallet(CWallet* wallet)
111{
112 wallet->WalletLogPrintf("Releasing wallet\n");
113 wallet->Close();
114 delete wallet;
115}
116
117bool CreateFromDump(const std::string& name, const fs::path& wallet_path, bilingual_str& error, std::vector<bilingual_str>& warnings)
118{

Callers

nothing calls this directly

Calls 2

WalletLogPrintfMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected