aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/load.cpp
diff options
context:
space:
mode:
authorIvan Metlushko <metlushko@gmail.com>2021-01-18 09:26:33 +0100
committerIvan Metlushko <metlushko@gmail.com>2021-05-19 08:50:20 +0200
commit489ebb7b34c403a3ce78ff6fb271f8e6ecb47304 (patch)
treed503521c7b2355e3b2b376ad29c12fe3a91b0038 /src/wallet/load.cpp
parentd73ae939649f3b30e52b5a2cccd7fafd1ab36766 (diff)
wallet: make chain optional for CWallet::Create
Diffstat (limited to 'src/wallet/load.cpp')
-rw-r--r--src/wallet/load.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/load.cpp b/src/wallet/load.cpp
index 9a163ef556..e0df96666f 100644
--- a/src/wallet/load.cpp
+++ b/src/wallet/load.cpp
@@ -106,7 +106,7 @@ bool LoadWallets(interfaces::Chain& chain)
continue;
}
chain.initMessage(_("Loading wallet...").translated);
- std::shared_ptr<CWallet> pwallet = database ? CWallet::Create(chain, name, std::move(database), options.create_flags, error, warnings) : nullptr;
+ std::shared_ptr<CWallet> pwallet = database ? CWallet::Create(&chain, name, std::move(database), options.create_flags, error, warnings) : nullptr;
if (!warnings.empty()) chain.initWarning(Join(warnings, Untranslated("\n")));
if (!pwallet) {
chain.initError(error);