[refactor] remove access to mapTx in validation.cpp

This commit is contained in:
glozow 2023-08-30 16:28:53 +01:00 committed by TheCharlatan
parent 333367a940
commit 938643c3b2
No known key found for this signature in database
GPG Key ID: 9B79B45691DB4173

View File

@ -353,7 +353,7 @@ void Chainstate::MaybeUpdateMempoolForReorg(
const std::optional<LockPoints> new_lock_points{CalculateLockPointsAtTip(m_chain.Tip(), view_mempool, tx)}; 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)) { if (new_lock_points.has_value() && CheckSequenceLocksAtTip(m_chain.Tip(), *new_lock_points)) {
// Now update the mempool entry lockpoints as well. // 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 { } else {
return true; return true;
} }