From 31c0dcf790c63a5ac69c6e83cfa481fb62a92a31 Mon Sep 17 00:00:00 2001 From: Daira Emma Hopwood Date: Tue, 28 Mar 2023 22:04:46 +0100 Subject: [PATCH] Change ZIP 401 mempool limiting to use conventional fee. Signed-off-by: Daira Emma Hopwood --- src/mempool_limit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mempool_limit.cpp b/src/mempool_limit.cpp index 743a10e7b..89f6f28b4 100644 --- a/src/mempool_limit.cpp +++ b/src/mempool_limit.cpp @@ -44,7 +44,7 @@ std::pair MempoolCostAndEvictionWeight(const CTransaction& tx, size_t memUsage = RecursiveDynamicUsage(tx); int64_t cost = std::max((int64_t) memUsage, (int64_t) MIN_TX_COST); int64_t evictionWeight = cost; - if (fee < DEFAULT_FEE) { + if (fee < tx.GetConventionalFee()) { evictionWeight += LOW_FEE_PENALTY; } return std::make_pair(cost, evictionWeight);