diff --git a/web-ui/src/app/app.component.ts b/web-ui/src/app/app.component.ts
index 2f12b18..a4bd5ae 100644
--- a/web-ui/src/app/app.component.ts
+++ b/web-ui/src/app/app.component.ts
@@ -87,7 +87,8 @@ export class AppComponent {
'label.tposContract': 'Contract',
'label.owner': 'Owner',
- 'label.merchant': 'Merchant'
+ 'label.merchant': 'Merchant',
+ 'label.total': 'Total'
};
}
}
diff --git a/web-ui/src/app/components/block-details/block-details.component.html b/web-ui/src/app/components/block-details/block-details.component.html
index cef522e..f4eb7e3 100644
--- a/web-ui/src/app/components/block-details/block-details.component.html
+++ b/web-ui/src/app/components/block-details/block-details.component.html
@@ -110,6 +110,11 @@
+
+
+
+
+
@@ -146,7 +151,12 @@
-
+
+
+
+
+
+
diff --git a/web-ui/src/app/components/block-details/block-details.component.ts b/web-ui/src/app/components/block-details/block-details.component.ts
index dc14b3d..348e72f 100644
--- a/web-ui/src/app/components/block-details/block-details.component.ts
+++ b/web-ui/src/app/components/block-details/block-details.component.ts
@@ -66,4 +66,36 @@ export class BlockDetailsComponent implements OnInit {
isTPoS(details: BlockDetails): boolean {
return !this.isPoW(details) && details.block.tposContract != null;
}
+
+ getPoSTotalReward(details: BlockDetails): number {
+ let total = 0;
+
+ if (details.rewards.masternode != null) {
+ total += details.rewards.masternode.value;
+ }
+
+ if (details.rewards.coinstake != null) {
+ total += details.rewards.coinstake.value;
+ }
+
+ return total;
+ }
+
+ getTPoSTotalReward(details: BlockDetails): number {
+ let total = 0;
+
+ if (details.rewards.masternode != null) {
+ total += details.rewards.masternode.value;
+ }
+
+ if (details.rewards.owner != null) {
+ total += details.rewards.owner.value;
+ }
+
+ if (details.rewards.merchant != null) {
+ total += details.rewards.merchant.value;
+ }
+
+ return total;
+ }
}