We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1480469 commit 9cd8cafCopy full SHA for 9cd8caf
src/validation.cpp
@@ -362,9 +362,7 @@ void Chainstate::MaybeUpdateMempoolForReorg(
362
// If the transaction spends any coinbase outputs, it must be mature.
363
if (it->GetSpendsCoinbase()) {
364
for (const CTxIn& txin : tx.vin) {
365
- auto it2 = m_mempool->mapTx.find(txin.prevout.hash);
366
- if (it2 != m_mempool->mapTx.end())
367
- continue;
+ if (m_mempool->exists(GenTxid::Txid(txin.prevout.hash))) continue;
368
const Coin& coin{CoinsTip().AccessCoin(txin.prevout)};
369
assert(!coin.IsSpent());
370
const auto mempool_spend_height{m_chain.Tip()->nHeight + 1};
0 commit comments