diff options
author | stickies-v <stickies-v@protonmail.com> | 2022-09-15 18:11:32 +0100 |
---|---|---|
committer | stickies-v <stickies-v@protonmail.com> | 2022-10-05 13:07:11 +0100 |
commit | 3a86f24a4c1e4e985b1d90eddc135b8dd17049a4 (patch) | |
tree | 4436c02fe2c5bd2c62388731ebaf3baa9220e5a6 /src/policy | |
parent | b85af25f8770974bae4ef3fae64e75ef6dd2d3c2 (diff) | |
download | bitcoin-3a86f24a4c1e4e985b1d90eddc135b8dd17049a4.tar.xz |
refactor: mempool: use CTxMempool::Limits
Simplifies function signatures by removing repetition of all the
ancestor/descendant limits, and increases readability by being
more verbose by naming the limits, while still reducing the LoC.
Diffstat (limited to 'src/policy')
-rw-r--r-- | src/policy/rbf.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/policy/rbf.cpp b/src/policy/rbf.cpp index 6098caced9..55f47f485b 100644 --- a/src/policy/rbf.cpp +++ b/src/policy/rbf.cpp @@ -36,10 +36,9 @@ RBFTransactionState IsRBFOptIn(const CTransaction& tx, const CTxMemPool& pool) // If all the inputs have nSequence >= maxint-1, it still might be // signaled for RBF if any unconfirmed parents have signaled. - uint64_t noLimit = std::numeric_limits<uint64_t>::max(); std::string dummy; CTxMemPoolEntry entry = *pool.mapTx.find(tx.GetHash()); - pool.CalculateMemPoolAncestors(entry, ancestors, noLimit, noLimit, noLimit, noLimit, dummy, false); + pool.CalculateMemPoolAncestors(entry, ancestors, CTxMemPool::Limits::NoLimits(), dummy, false); for (CTxMemPool::txiter it : ancestors) { if (SignalsOptInRBF(it->GetTx())) { |