Skip to content

Commit 7ee54fd

Browse files
committed
Support downgrading after recovered keypool witness keys
1 parent 940a219 commit 7ee54fd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/wallet/wallet.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3636,6 +3636,7 @@ void CWallet::MarkReserveKeysAsUsed(int64_t keypool_id)
36363636
if (walletdb.ReadPool(index, keypool)) { //TODO: This should be unnecessary
36373637
m_pool_key_to_index.erase(keypool.vchPubKey.GetID());
36383638
}
3639+
LearnAllRelatedScripts(keypool.vchPubKey);
36393640
walletdb.ErasePool(index);
36403641
LogPrintf("keypool index %d removed\n", index);
36413642
it = setKeyPool->erase(it);

0 commit comments

Comments
 (0)