diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2017-11-30 16:49:16 -0800 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2018-01-09 15:35:31 -0800 |
commit | 7ee54fd7c7fa31e3cec382651dd373f7ef2d7327 (patch) | |
tree | 0a8696fe594fa08f1cda05b08d7e9a3d005b7a2b | |
parent | 940a21932ba769ba5829cba713579db84f96d2f8 (diff) | |
download | bitcoin-7ee54fd7c7fa31e3cec382651dd373f7ef2d7327.tar.xz |
Support downgrading after recovered keypool witness keys
-rw-r--r-- | src/wallet/wallet.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index ff052c75be..e473f402c4 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -3636,6 +3636,7 @@ void CWallet::MarkReserveKeysAsUsed(int64_t keypool_id) if (walletdb.ReadPool(index, keypool)) { //TODO: This should be unnecessary m_pool_key_to_index.erase(keypool.vchPubKey.GetID()); } + LearnAllRelatedScripts(keypool.vchPubKey); walletdb.ErasePool(index); LogPrintf("keypool index %d removed\n", index); it = setKeyPool->erase(it); |