Added filter for late txpool notifications

This commit is contained in:
SChernykh
2025-09-24 09:56:53 +02:00
parent bae7c65126
commit 1e8e6c1010
7 changed files with 47 additions and 7 deletions
+13
View File
@@ -65,4 +65,17 @@ void Mempool::swap(std::vector<TxMempoolData>& transactions)
}
}
void Mempool::remove(const std::vector<hash>& tx_hashes)
{
if (tx_hashes.empty()) {
return;
}
WriteLock lock(m_lock);
for (const hash& h : tx_hashes) {
m_transactions.erase(h);
}
}
} // namespace p2pool