-
Unconfirmed transactions: {{ memPoolInfo?.memPoolInfo?.size | number }} ({{ mempoolBlocks }} blocks)
+
Unconfirmed transactions: {{ memPoolInfo?.memPoolInfo?.size | number }}
-
Tx per second: {{ memPoolInfo?.txPerSecond | number : '1.2-2' }} tx/s
+
Mempool size: {{ mempoolSize | bytes }} ({{ mempoolBlocks }} blocks)
Tx weight per second:
diff --git a/frontend/src/app/footer/footer.component.scss b/frontend/src/app/footer/footer.component.scss
index cc37ebdbe..6cb20d2ad 100644
--- a/frontend/src/app/footer/footer.component.scss
+++ b/frontend/src/app/footer/footer.component.scss
@@ -23,12 +23,14 @@
}
.info-block {
- float:left;
+ float: left;
+ width: 350px;
+ line-height: 25px;
}
.progress {
display: inline-flex;
- width: 150px;
+ width: 160px;
background-color: #2d3348;
height: 1.1rem;
}
diff --git a/frontend/src/app/footer/footer.component.ts b/frontend/src/app/footer/footer.component.ts
index e5bcfd100..81589b326 100644
--- a/frontend/src/app/footer/footer.component.ts
+++ b/frontend/src/app/footer/footer.component.ts
@@ -11,6 +11,7 @@ export class FooterComponent implements OnInit {
mempoolBlocks = 0;
progressWidth = '';
progressClass: string;
+ mempoolSize = 0;
constructor(
private memPoolService: MemPoolService
@@ -22,9 +23,14 @@ export class FooterComponent implements OnInit {
this.memPoolInfo = mempoolState;
this.updateProgress();
});
- this.memPoolService.mempoolWeight$
- .subscribe((mempoolWeight) => {
- this.mempoolBlocks = Math.ceil(mempoolWeight / 4000000);
+
+ this.memPoolService.projectedBlocks$
+ .subscribe((projectedblocks) => {
+ if (!projectedblocks.length) { return; }
+ const size = projectedblocks.map((m) => m.blockSize).reduce((a, b) => a + b);
+ const weight = projectedblocks.map((m) => m.blockWeight).reduce((a, b) => a + b);
+ this.mempoolSize = size;
+ this.mempoolBlocks = Math.ceil(weight / 4000000);
});
}
diff --git a/frontend/src/app/master-page/master-page.component.html b/frontend/src/app/master-page/master-page.component.html
index aeba9e2bc..da882113d 100644
--- a/frontend/src/app/master-page/master-page.component.html
+++ b/frontend/src/app/master-page/master-page.component.html
@@ -15,6 +15,9 @@
Graphs
+
+ TV view
+
About
diff --git a/frontend/src/app/statistics/statistics.component.html b/frontend/src/app/statistics/statistics.component.html
index 5ec8ede1a..89af7bc30 100644
--- a/frontend/src/app/statistics/statistics.component.html
+++ b/frontend/src/app/statistics/statistics.component.html
@@ -86,23 +86,6 @@