aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/walletutil.h
diff options
context:
space:
mode:
authorJoão Barbosa <joao.paulo.barbosa@gmail.com>2018-09-22 00:24:29 +0100
committerJoão Barbosa <joao.paulo.barbosa@gmail.com>2018-10-18 23:26:06 +0100
commitfc4db35bfd78d85d6b52d5da3d89696160658450 (patch)
tree666a877d77af91faa2306408012ba8b6078946e1 /src/wallet/walletutil.h
parent920c090f63f4990bf0f3b3d1a6d3d8a8bcd14ba0 (diff)
downloadbitcoin-fc4db35bfd78d85d6b52d5da3d89696160658450.tar.xz
wallet: Add ListWalletDir utility
ListWalletDir returns all available wallets in the current wallet directory. Based on MeshCollider work in pull #11485.
Diffstat (limited to 'src/wallet/walletutil.h')
-rw-r--r--src/wallet/walletutil.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/wallet/walletutil.h b/src/wallet/walletutil.h
index 7c42954616..77f5ca428d 100644
--- a/src/wallet/walletutil.h
+++ b/src/wallet/walletutil.h
@@ -5,10 +5,14 @@
#ifndef BITCOIN_WALLET_WALLETUTIL_H
#define BITCOIN_WALLET_WALLETUTIL_H
-#include <chainparamsbase.h>
-#include <util.h>
+#include <fs.h>
+
+#include <vector>
//! Get the path of the wallet directory.
fs::path GetWalletDir();
+//! Get wallets in wallet directory.
+std::vector<fs::path> ListWalletDir();
+
#endif // BITCOIN_WALLET_WALLETUTIL_H