Translates a wallet loading result into the appropriate RPC error.
Synopsis
Declared in <wallet/rpc/util.h>
void
HandleWalletError(
std::shared_ptr<CWallet> const& wallet,
DatabaseStatus& status,
bilingual_str& error);
Parameters
Name |
Description |
wallet |
The loaded wallet, or null on failure. |
status |
The database status returned while loading. |
error |
The error message describing the failure. |
Created with MrDocs