Remove useless mapNextTx lookup in CTxMemPool::TrimToSize.
commitec1271f2bea52d43bd24fb93d32d24168f8c6a74
authorMatt Corallo <git@bluematt.me>
Mon, 5 Jun 2017 15:42:24 +0000 (5 11:42 -0400)
committerMatt Corallo <git@bluematt.me>
Tue, 6 Jun 2017 01:46:14 +0000 (5 21:46 -0400)
treebcd29f3969091ee0c818ed7707b4eef0998f1840
parent9fec4da0bec93a49798b5f5e92cf76e900759ee4
Remove useless mapNextTx lookup in CTxMemPool::TrimToSize.

Prior to per-utxo CCoins, we checked that no other in-mempool tx
spent any of the given transaction's outputs, as we don't want to
uncache that entire tx in such a case. However, we now are checking
only that there exists no other mempool spends of the same output,
which should clearly be impossible after we removed the transaction
which was spending said output (barring massive mempool
inconsistency).

Thanks to @sdaftuar for the suggestion.
src/txmempool.cpp