mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-11 13:13:49 +01:00
wallet: Add ListWalletDir utility
ListWalletDir returns all available wallets in the current wallet directory. Based on MeshCollider work in pull #11485.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user