diff options
| author | João Barbosa <[email protected]> | 2018-04-18 13:46:11 +0100 |
|---|---|---|
| committer | João Barbosa <[email protected]> | 2018-04-18 22:07:58 +0100 |
| commit | 3c058fdcc8a71d17296973cb7f09e44a310df22e (patch) | |
| tree | 8897fab95f0c2b94503305bef537cf412642ac18 /src/wallet/rpcwallet.cpp | |
| parent | wallet: Add AddWallet, RemoveWallet, GetWallet and GetWallets (diff) | |
| download | discoin-3c058fdcc8a71d17296973cb7f09e44a310df22e.tar.xz discoin-3c058fdcc8a71d17296973cb7f09e44a310df22e.zip | |
wallet: Add HasWallets
Diffstat (limited to 'src/wallet/rpcwallet.cpp')
| -rw-r--r-- | src/wallet/rpcwallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 9875a2697..9b5fb0b06 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -66,7 +66,7 @@ bool EnsureWalletIsAvailable(CWallet * const pwallet, bool avoidException) { if (pwallet) return true; if (avoidException) return false; - if (GetWallets().empty()) { + if (!HasWallets()) { // Note: It isn't currently possible to trigger this error because // wallet RPC methods aren't registered unless a wallet is loaded. But // this error is being kept as a precaution, because it's possible in |