0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-02 09:46:52 -05:00

Clear vTxHashes when mapTx is cleared

This commit is contained in:
Peter Bushnell 2022-01-31 07:52:44 +00:00
parent af7b077973
commit 9d65ad365c

View file

@ -704,6 +704,7 @@ void CTxMemPool::removeForBlock(const std::vector<CTransactionRef>& vtx, unsigne
void CTxMemPool::_clear()
{
vTxHashes.clear();
mapTx.clear();
mapNextTx.clear();
totalTxSize = 0;