interfaces: Add getWalletDir and listWalletDir to Node

This commit is contained in:
João Barbosa
2018-09-22 00:53:25 +01:00
parent fc4db35bfd
commit d1b03b8e5f
3 changed files with 30 additions and 0 deletions

View File

@@ -173,6 +173,12 @@ public:
//! Get unspent outputs associated with a transaction.
virtual bool getUnspentOutput(const COutPoint& output, Coin& coin) = 0;
//! Return default wallet directory.
virtual std::string getWalletDir() = 0;
//! Return available wallets in wallet directory.
virtual std::vector<std::string> listWalletDir() = 0;
//! Return interfaces for accessing wallets (if any).
virtual std::vector<std::unique_ptr<Wallet>> getWallets() = 0;