diff options
author | Andrew Chow <achow101-github@achow101.com> | 2022-07-18 13:31:19 -0400 |
---|---|---|
committer | Andrew Chow <github@achow101.com> | 2023-06-13 15:11:41 -0400 |
commit | 43310200dce8d450ae5808824af788cefaa5d6db (patch) | |
tree | c168fe570e3f6ed30cd51a2333084b70d7cde92a /src/wallet/scriptpubkeyman.cpp | |
parent | e9379f1ffa7a4eebce397f1150317e840655e021 (diff) | |
download | bitcoin-43310200dce8d450ae5808824af788cefaa5d6db.tar.xz |
wallet: Ensure that the blank wallet flag is unset after imports
Diffstat (limited to 'src/wallet/scriptpubkeyman.cpp')
-rw-r--r-- | src/wallet/scriptpubkeyman.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/scriptpubkeyman.cpp b/src/wallet/scriptpubkeyman.cpp index 62bd0c06cd..8c34c45e49 100644 --- a/src/wallet/scriptpubkeyman.cpp +++ b/src/wallet/scriptpubkeyman.cpp @@ -755,12 +755,12 @@ bool LegacyScriptPubKeyMan::AddKeyPubKeyWithDB(WalletBatch& batch, const CKey& s RemoveWatchOnly(script); } + m_storage.UnsetBlankWalletFlag(batch); if (!m_storage.HasEncryptionKeys()) { return batch.WriteKey(pubkey, secret.GetPrivKey(), mapKeyMetadata[pubkey.GetID()]); } - m_storage.UnsetBlankWalletFlag(batch); return true; } |