Change ZIP 401 mempool limiting to use conventional fee.

Signed-off-by: Daira Emma Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Emma Hopwood 2023-03-28 22:04:46 +01:00
parent 0a901b06eb
commit 31c0dcf790
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ std::pair<int64_t, int64_t> 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);