Merge pull request #3327 from mempool/nymkappa/bugfix/show-total-fee-last-mempool-block

Show cumulated fee on last mempool block
This commit is contained in:
softsimon 2023-03-12 19:17:57 +09:00 committed by GitHub
commit 2f4dba895c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -214,6 +214,7 @@ export class MempoolBlocksComponent implements OnInit, OnDestroy {
lastBlock.feeRange = lastBlock.feeRange.concat(block.feeRange);
lastBlock.feeRange.sort((a, b) => a - b);
lastBlock.medianFee = this.median(lastBlock.feeRange);
lastBlock.totalFees += block.totalFees;
}
return blocks;
}