aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2017-11-30 16:49:16 -0800
committerPieter Wuille <pieter.wuille@gmail.com>2018-01-09 15:35:31 -0800
commit7ee54fd7c7fa31e3cec382651dd373f7ef2d7327 (patch)
tree0a8696fe594fa08f1cda05b08d7e9a3d005b7a2b /src/wallet
parent940a21932ba769ba5829cba713579db84f96d2f8 (diff)
downloadbitcoin-7ee54fd7c7fa31e3cec382651dd373f7ef2d7327.tar.xz
Support downgrading after recovered keypool witness keys
Diffstat (limited to 'src/wallet')
-rw-r--r--src/wallet/wallet.cpp1
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);