Show expected fees in blocks list

This commit is contained in:
Joost Jager
2023-06-06 08:52:29 +02:00
parent 3c0bb11208
commit 74b2014dff
7 changed files with 15 additions and 2 deletions

View File

@@ -282,10 +282,12 @@ class Blocks {
}
extras.matchRate = null;
extras.expectedFees = null;
if (config.MEMPOOL.AUDIT) {
const auditScore = await BlocksAuditsRepository.$getBlockAuditScore(block.id);
if (auditScore != null) {
extras.matchRate = auditScore.matchRate;
extras.expectedFees = auditScore.expectedFees;
}
}
}

View File

@@ -598,6 +598,7 @@ class WebsocketHandler {
if (block.extras) {
block.extras.matchRate = matchRate;
block.extras.expectedFees = totalFees;
block.extras.similarity = similarity;
}
}