From fc4db35bfd78d85d6b52d5da3d89696160658450 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Barbosa?= Date: Sat, 22 Sep 2018 00:24:29 +0100 Subject: wallet: Add ListWalletDir utility ListWalletDir returns all available wallets in the current wallet directory. Based on MeshCollider work in pull #11485. --- src/wallet/walletutil.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/wallet/walletutil.h') 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 -#include +#include + +#include //! Get the path of the wallet directory. fs::path GetWalletDir(); +//! Get wallets in wallet directory. +std::vector ListWalletDir(); + #endif // BITCOIN_WALLET_WALLETUTIL_H -- cgit v1.2.3