diff options
author | glozow <gloriajzhao@gmail.com> | 2023-08-30 16:28:53 +0100 |
---|---|---|
committer | TheCharlatan <seb.kung@gmail.com> | 2023-11-10 16:44:40 +0100 |
commit | 938643c3b2b8e7b9aec1df34a2f8a95d616d8dd5 (patch) | |
tree | 5e9beebece841a38054bca55174b02d5ce8cb5f0 /src/validation.cpp | |
parent | 333367a9407701b5077e2457b1a6aa8ff5e4934b (diff) |
[refactor] remove access to mapTx in validation.cpp
Diffstat (limited to 'src/validation.cpp')
-rw-r--r-- | src/validation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index e1838a8589..001359d4f3 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -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; } |