Skip to content

Commit 78e7cbc

Browse files
committed
Refactor: Remove UnsetWalletFlag call from LegacyScriptPubKeyMan::SetHDSeed
This commit does not change behavior.
1 parent 0391aba commit 78e7cbc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/wallet/scriptpubkeyman.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,8 @@ void LegacyScriptPubKeyMan::SetHDSeed(const CPubKey& seed)
875875
newHdChain.seed_id = seed.GetID();
876876
SetHDChain(newHdChain, false);
877877
NotifyCanGetAddressesChanged();
878-
m_wallet.UnsetWalletFlag(WALLET_FLAG_BLANK_WALLET);
878+
WalletBatch batch(m_storage.GetDatabase());
879+
m_storage.UnsetWalletFlagWithDB(batch, WALLET_FLAG_BLANK_WALLET);
879880
}
880881

881882
/**

0 commit comments

Comments
 (0)