Skip to content

Commit 9d65ad3

Browse files
committed
Clear vTxHashes when mapTx is cleared
1 parent af7b077 commit 9d65ad3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/txmempool.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,7 @@ void CTxMemPool::removeForBlock(const std::vector<CTransactionRef>& vtx, unsigne
704704

705705
void CTxMemPool::_clear()
706706
{
707+
vTxHashes.clear();
707708
mapTx.clear();
708709
mapNextTx.clear();
709710
totalTxSize = 0;

0 commit comments

Comments
 (0)