aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/load.cpp
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2022-03-29 22:28:42 +0200
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2022-03-30 21:28:53 +0200
commit0c12f0116ca802f55f5ab43e6c4842ac403b9889 (patch)
tree8bb0fdfe00848316a364ea89749d8f8d0eba94d9 /src/wallet/load.cpp
parentaeee419c6aae085cacd75343c1ce23486b2b8916 (diff)
downloadbitcoin-0c12f0116ca802f55f5ab43e6c4842ac403b9889.tar.xz
wallet: Postpone NotifyWalletLoaded() for encrypted wallets
Too early NotifyWalletLoaded() call in CWallet::Create() results the notification goes before DescriptorScriptPubKeyMans were created and added to an encrypted wallet. Co-authored-by: Andrew Chow <achow101-github@achow101.com>
Diffstat (limited to 'src/wallet/load.cpp')
-rw-r--r--src/wallet/load.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/load.cpp b/src/wallet/load.cpp
index 98ce95dcd1..c06513588b 100644
--- a/src/wallet/load.cpp
+++ b/src/wallet/load.cpp
@@ -130,6 +130,8 @@ bool LoadWallets(WalletContext& context)
chain.initError(error);
return false;
}
+
+ NotifyWalletLoaded(context, pwallet);
AddWallet(context, pwallet);
}
return true;