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