aboutsummaryrefslogtreecommitdiff
path: root/src/dummywallet.cpp
diff options
context:
space:
mode:
authorJoão Barbosa <[email protected]>2019-01-12 11:47:04 +0000
committerJoão Barbosa <[email protected]>2019-02-04 12:20:42 +0000
commit17abc0fd52510bfeb85a7b5be04001075ec78b6b (patch)
treedab3db76b7929f76ba8deedebdf57ebb40c3a24b /src/dummywallet.cpp
parentMerge #15280: gui: Fix shutdown order (diff)
downloaddiscoin-17abc0fd52510bfeb85a7b5be04001075ec78b6b.tar.xz
discoin-17abc0fd52510bfeb85a7b5be04001075ec78b6b.zip
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 9211a7596..8a76021a5 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;