aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
diff options
context:
space:
mode:
authorstickies-v <stickies-v@protonmail.com>2022-09-15 18:11:32 +0100
committerstickies-v <stickies-v@protonmail.com>2022-10-05 13:07:11 +0100
commit3a86f24a4c1e4e985b1d90eddc135b8dd17049a4 (patch)
tree4436c02fe2c5bd2c62388731ebaf3baa9220e5a6 /src/rpc
parentb85af25f8770974bae4ef3fae64e75ef6dd2d3c2 (diff)
downloadbitcoin-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/rpc')
-rw-r--r--src/rpc/mempool.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rpc/mempool.cpp b/src/rpc/mempool.cpp
index e390a7c15c..706d783942 100644
--- a/src/rpc/mempool.cpp
+++ b/src/rpc/mempool.cpp
@@ -449,9 +449,8 @@ static RPCHelpMan getmempoolancestors()
}
CTxMemPool::setEntries setAncestors;
- uint64_t noLimit = std::numeric_limits<uint64_t>::max();
std::string dummy;
- mempool.CalculateMemPoolAncestors(*it, setAncestors, noLimit, noLimit, noLimit, noLimit, dummy, false);
+ mempool.CalculateMemPoolAncestors(*it, setAncestors, CTxMemPool::Limits::NoLimits(), dummy, false);
if (!fVerbose) {
UniValue o(UniValue::VARR);