aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglozow <gloriajzhao@gmail.com>2022-03-11 16:17:56 +0000
committerglozow <gloriajzhao@gmail.com>2022-03-14 16:02:53 +0000
commit7a8d60676bc0eec289687b2dfd5d2b00b83c0eaa (patch)
tree197bb8d22f324affecbf96523780a83ed7c7bcc2
parent0f9a44461c294cf21a335e8a8c13e498baac110f (diff)
downloadbitcoin-7a8d60676bc0eec289687b2dfd5d2b00b83c0eaa.tar.xz
[miner] bug fix: update for parent inclusion using modified fee
-rw-r--r--src/node/miner.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node/miner.h b/src/node/miner.h
index 97c55f2864..487969b9f0 100644
--- a/src/node/miner.h
+++ b/src/node/miner.h
@@ -116,7 +116,7 @@ struct update_for_parent_inclusion
void operator() (CTxMemPoolModifiedEntry &e)
{
- e.nModFeesWithAncestors -= iter->GetFee();
+ e.nModFeesWithAncestors -= iter->GetModifiedFee();
e.nSizeWithAncestors -= iter->GetTxSize();
e.nSigOpCostWithAncestors -= iter->GetSigOpCost();
}