aboutsummaryrefslogtreecommitdiff
path: root/src/dummywallet.cpp
diff options
context:
space:
mode:
authorJoão Barbosa <joao.paulo.barbosa@gmail.com>2019-01-12 11:47:04 +0000
committerJoão Barbosa <joao.paulo.barbosa@gmail.com>2019-02-04 12:20:42 +0000
commit17abc0fd52510bfeb85a7b5be04001075ec78b6b (patch)
treedab3db76b7929f76ba8deedebdf57ebb40c3a24b /src/dummywallet.cpp
parent64127b3098a1aab70200b6d07194dce072ad5cf2 (diff)
downloadbitcoin-17abc0fd52510bfeb85a7b5be04001075ec78b6b.tar.xz
wallet: Factor out LoadWallet
Diffstat (limited to 'src/dummywallet.cpp')
-rw-r--r--src/dummywallet.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/dummywallet.cpp b/src/dummywallet.cpp
index 9211a7596b..8a76021a5b 100644
--- a/src/dummywallet.cpp
+++ b/src/dummywallet.cpp
@@ -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;