1 file changed
+2
-2
+2
-2
@@ -384,10 +384,10 @@ void CChainState::MaybeUpdateMempoolForReorg(
|
|||||||
auto it2 = m_mempool->mapTx.find(txin.prevout.hash);
|
auto it2 = m_mempool->mapTx.find(txin.prevout.hash);
|
||||||
if (it2 != m_mempool->mapTx.end())
|
if (it2 != m_mempool->mapTx.end())
|
||||||
continue;
|
continue;
|
||||||
const Coin &coin = CoinsTip().AccessCoin(txin.prevout);
|
const Coin& coin{CoinsTip().AccessCoin(txin.prevout)};
|
||||||
assert(!coin.IsSpent());
|
assert(!coin.IsSpent());
|
||||||
const auto mempool_spend_height{m_chain.Tip()->nHeight + 1};
|
const auto mempool_spend_height{m_chain.Tip()->nHeight + 1};
|
||||||
if (coin.IsSpent() || (coin.IsCoinBase() && mempool_spend_height - coin.nHeight < COINBASE_MATURITY)) {
|
if (coin.IsCoinBase() && mempool_spend_height - coin.nHeight < COINBASE_MATURITY) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user