When filtering out lower fee parents, compare with effective fee instead of base fee to include a CPFP chain of transactions.

This commit is contained in:
softsimon
2021-04-10 21:26:05 +04:00
parent 1a166560ee
commit f50d0fa22a
2 changed files with 9 additions and 5 deletions

View File

@@ -53,7 +53,7 @@ class MempoolBlocks {
// Pass down size + fee to all unconfirmed children
let sizes = 0;
memPoolArray.forEach((tx, i) => {
sizes += tx.weight
sizes += tx.weight;
if (sizes > 4000000 * 8) {
return;
}