aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.cpp
diff options
context:
space:
mode:
authorJoão Barbosa <[email protected]>2018-04-18 13:46:11 +0100
committerJoão Barbosa <[email protected]>2018-04-18 22:07:58 +0100
commit3c058fdcc8a71d17296973cb7f09e44a310df22e (patch)
tree8897fab95f0c2b94503305bef537cf412642ac18 /src/wallet/wallet.cpp
parentwallet: Add AddWallet, RemoveWallet, GetWallet and GetWallets (diff)
downloaddiscoin-3c058fdcc8a71d17296973cb7f09e44a310df22e.tar.xz
discoin-3c058fdcc8a71d17296973cb7f09e44a310df22e.zip
wallet: Add HasWallets
Diffstat (limited to 'src/wallet/wallet.cpp')
-rw-r--r--src/wallet/wallet.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp
index fcc4cfb1f..8c392434f 100644
--- a/src/wallet/wallet.cpp
+++ b/src/wallet/wallet.cpp
@@ -54,6 +54,11 @@ bool RemoveWallet(CWallet* wallet)
return true;
}
+bool HasWallets()
+{
+ return !vpwallets.empty();
+}
+
std::vector<CWallet*> GetWallets()
{
return vpwallets;