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

@@ -34,6 +34,16 @@ void DummyWalletInit::AddWalletOptions() const
const WalletInitInterface& g_wallet_init_interface = DummyWalletInit();
fs::path GetWalletDir()
{
throw std::logic_error("Wallet function called in non-wallet build.");
}
std::vector<fs::path> ListWalletDir()
{
throw std::logic_error("Wallet function called in non-wallet build.");
}
std::vector<std::shared_ptr<CWallet>> GetWallets()
{
throw std::logic_error("Wallet function called in non-wallet build.");