Clear setInternalKeyPool and setExternalKeyPool instead of setKeyPool

Due to out of order backporting this was missed in the past
This commit is contained in:
Alexander Block 2017-09-15 12:08:47 +02:00
parent e2fefa539d
commit a309bf372e

View File

@ -3654,7 +3654,8 @@ DBErrors CWallet::ZapSelectTx(vector<uint256>& vHashIn, vector<uint256>& 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.