[refactor] remove access to mapTx in validation.cpp

This commit is contained in:
glozow authored and TheCharlatan committed 2023-11-10 16:44:40 +01:00
1 parent 333367a940
commit 938643c3b2
1 file changed
+1 -1
+1 -1
View File
@@ -353,7 +353,7 @@ void Chainstate::MaybeUpdateMempoolForReorg(
const std::optional<LockPoints> new_lock_points{CalculateLockPointsAtTip(m_chain.Tip(), view_mempool, tx)};
if (new_lock_points.has_value() && CheckSequenceLocksAtTip(m_chain.Tip(), *new_lock_points)) {
// Now update the mempool entry lockpoints as well.
m_mempool->mapTx.modify(it, [&new_lock_points](CTxMemPoolEntry& e) { e.UpdateLockPoints(*new_lock_points); });
it->UpdateLockPoints(*new_lock_points);
} else {
return true;
}