mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-06 21:20:57 +02:00
[refactor] remove access to mapTx in validation.cpp
This commit is contained in:
parent
333367a940
commit
938643c3b2
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user