mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
wallet: Ensure that the blank wallet flag is unset after imports
This commit is contained in:
parent
e9379f1ffa
commit
43310200dc
2 changed files with 3 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue