From a309bf372ec92983561676ba3e373096fff557b9 Mon Sep 17 00:00:00 2001 From: Alexander Block Date: Fri, 15 Sep 2017 12:08:47 +0200 Subject: [PATCH] Clear setInternalKeyPool and setExternalKeyPool instead of setKeyPool Due to out of order backporting this was missed in the past --- src/wallet/wallet.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index d3d181b3b8..94d54b6907 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -3654,7 +3654,8 @@ DBErrors CWallet::ZapSelectTx(vector& vHashIn, vector& vHashOu if (CDB::Rewrite(strWalletFile, "\x04pool")) { LOCK(cs_wallet); - setKeyPool.clear(); + setInternalKeyPool.clear(); + setExternalKeyPool.clear(); // Note: can't top-up keypool here, because wallet is locked. // User will be prompted to unlock wallet the next operation // that requires a new key.