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.