wallet: Factor out LoadWallet

This commit is contained in:
João Barbosa
2019-01-12 11:47:04 +00:00
parent 64127b3098
commit 17abc0fd52
4 changed files with 35 additions and 13 deletions

View File

@@ -8,6 +8,10 @@
class CWallet;
namespace interfaces {
class Chain;
}
class DummyWalletInit : public WalletInitInterface {
public:
@@ -43,6 +47,11 @@ std::vector<std::shared_ptr<CWallet>> GetWallets()
throw std::logic_error("Wallet function called in non-wallet build.");
}
std::shared_ptr<CWallet> LoadWallet(interfaces::Chain& chain, const std::string& name, std::string& error, std::string& warning)
{
throw std::logic_error("Wallet function called in non-wallet build.");
}
namespace interfaces {
class Wallet;