Adding "mempool block" details. Work in progress!

This commit is contained in:
softsimon committed 2020-03-17 21:53:20 +07:00
1 parent 3e6f382c4d
commit 72658c19f6
18 files changed
+260 -9

No files matched your search

+1
View File
@@ -62,6 +62,7 @@ class MempoolBlocks {
blockSize: blockSize,
blockVSize: blockVSize,
nTx: transactions.length,
totalFees: transactions.reduce((acc, cur) => acc + cur.fee, 0),
medianFee: this.median(transactions.map((tx) => tx.feePerVsize)),
feeRange: this.getFeesInRange(transactions, rangeLength),
};