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 06b6369 commit fa2bcc4Copy full SHA for fa2bcc4
src/validation.cpp
@@ -384,10 +384,10 @@ void CChainState::MaybeUpdateMempoolForReorg(
384
auto it2 = m_mempool->mapTx.find(txin.prevout.hash);
385
if (it2 != m_mempool->mapTx.end())
386
continue;
387
- const Coin &coin = CoinsTip().AccessCoin(txin.prevout);
+ const Coin& coin{CoinsTip().AccessCoin(txin.prevout)};
388
assert(!coin.IsSpent());
389
const auto mempool_spend_height{m_chain.Tip()->nHeight + 1};
390
- if (coin.IsSpent() || (coin.IsCoinBase() && mempool_spend_height - coin.nHeight < COINBASE_MATURITY)) {
+ if (coin.IsCoinBase() && mempool_spend_height - coin.nHeight < COINBASE_MATURITY) {
391
return true;
392
}
393
0 commit comments