Merge 100fa0a62a into merged_master (Bitcoin PR #17300)

This commit is contained in:
Andrew Poelstra 2020-11-09 21:20:48 +00:00
commit 751d0ac9f4
4 changed files with 35 additions and 49 deletions

View file

@ -396,6 +396,8 @@ bool LegacyScriptPubKeyMan::AddKeyPubKey(const CKey& secret, const CPubKey &pubk
bool LegacyScriptPubKeyMan::AddKeyPubKeyWithDB(WalletBatch& batch, const CKey& secret, const CPubKey& pubkey)
{
AssertLockHeld(cs_wallet);
// Make sure we aren't adding private keys to private key disabled wallets
assert(!m_storage.IsWalletFlagSet(WALLET_FLAG_DISABLE_PRIVATE_KEYS));