Skip to content

Commit 1480469

Browse files
glozowTheCharlatan
authored andcommitted
[refactor] remove access to mapTx from policy/rbf.cpp
1 parent 1c6a73a commit 1480469

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/policy/rbf.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <tinyformat.h>
1313
#include <txmempool.h>
1414
#include <uint256.h>
15+
#include <util/check.h>
1516
#include <util/moneystr.h>
1617
#include <util/rbf.h>
1718

@@ -35,7 +36,7 @@ RBFTransactionState IsRBFOptIn(const CTransaction& tx, const CTxMemPool& pool)
3536

3637
// If all the inputs have nSequence >= maxint-1, it still might be
3738
// signaled for RBF if any unconfirmed parents have signaled.
38-
const CTxMemPoolEntry entry{*pool.mapTx.find(tx.GetHash())};
39+
const auto& entry{*Assert(pool.GetEntry(tx.GetHash()))};
3940
auto ancestors{pool.AssumeCalculateMemPoolAncestors(__func__, entry, CTxMemPool::Limits::NoLimits(),
4041
/*fSearchForParents=*/false)};
4142

0 commit comments

Comments
 (0)