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

Function WalletToolReleaseWallet

src/wallet/wallettool.cpp:25–30  ·  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

23// queue, which doesn't exist for the bitcoin-wallet. Define our own
24// deleter here.
25static void WalletToolReleaseWallet(CWallet* wallet)
26{
27 wallet->WalletLogPrintf("Releasing wallet\n");
28 wallet->Close();
29 delete wallet;
30}
31
32static void WalletCreate(CWallet* wallet_instance, uint64_t wallet_creation_flags)
33{

Callers

nothing calls this directly

Calls 2

WalletLogPrintfMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected