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