Footer and header design updates.
This commit is contained in:
@@ -60,6 +60,8 @@ class Blocks {
|
||||
}
|
||||
}
|
||||
|
||||
console.log(`${found} of ${txIds.length} found in mempool. ${notFound} not found.`);
|
||||
|
||||
transactions.sort((a, b) => b.feePerVsize - a.feePerVsize);
|
||||
block.medianFee = this.median(transactions.map((tx) => tx.feePerVsize));
|
||||
block.feeRange = this.getFeesInRange(transactions, 8);
|
||||
|
||||
@@ -104,7 +104,7 @@ class Mempool {
|
||||
}
|
||||
|
||||
// Replace mempool to clear already confirmed transactions
|
||||
const newMempool: any = {};
|
||||
const newMempool = {};
|
||||
transactions.forEach((tx) => {
|
||||
if (this.mempoolCache[tx]) {
|
||||
newMempool[tx] = this.mempoolCache[tx];
|
||||
@@ -113,6 +113,9 @@ class Mempool {
|
||||
}
|
||||
});
|
||||
|
||||
console.log(`New mempool size: ${Object.keys(newMempool).length} ` +
|
||||
` Change: ${transactions.length - Object.keys(newMempool).length}`);
|
||||
|
||||
this.mempoolCache = newMempool;
|
||||
|
||||
if (hasChange && this.mempoolChangedCallback) {
|
||||
|
||||
Reference in New Issue
Block a user