mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-05 14:06:27 -05:00
Clear vTxHashes when mapTx is cleared
This commit is contained in:
parent
af7b077973
commit
9d65ad365c
1 changed files with 1 additions and 0 deletions
|
@ -704,6 +704,7 @@ void CTxMemPool::removeForBlock(const std::vector<CTransactionRef>& vtx, unsigne
|
||||||
|
|
||||||
void CTxMemPool::_clear()
|
void CTxMemPool::_clear()
|
||||||
{
|
{
|
||||||
|
vTxHashes.clear();
|
||||||
mapTx.clear();
|
mapTx.clear();
|
||||||
mapNextTx.clear();
|
mapNextTx.clear();
|
||||||
totalTxSize = 0;
|
totalTxSize = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue