From 9e812aa6f606e65c2bd44ec1ac2eef216a5a7149 Mon Sep 17 00:00:00 2001 From: shunmugam Date: Tue, 7 Jan 2020 13:31:30 +0530 Subject: [PATCH] Commit for network hashrate --- server/utils/common.ts | 9 +++-- .../block-detail-list.component.html | 36 +++++++++++++++++++ 2 files changed, 43 insertions(+), 2 deletions(-) diff --git a/server/utils/common.ts b/server/utils/common.ts index f6c7d25..5bce8bb 100644 --- a/server/utils/common.ts +++ b/server/utils/common.ts @@ -284,7 +284,9 @@ let currentReward = 16; } } - + let cuckoohashrate = await network_hashrate(block_height,31,targetdifficultycuckatoo); + let progpowhashrate = await network_hashrate(block_height,16,targetdifficultyprogpow); + let randomxashrate = await network_hashrate(block_height,16,targetdifficultyrandomx); return { block_height, @@ -304,7 +306,10 @@ let currentReward = 16; TotalDifficultyRandomx:BlockchainLatestBlockQuery[0].total_difficulty_randomx, currentReward, foundationReward, - userReward + userReward, + cuckoohashrate, + progpowhashrate, + randomxashrate }; } diff --git a/src/app/view/home/block-detail-list/block-detail-list.component.html b/src/app/view/home/block-detail-list/block-detail-list.component.html index cd4e889..49711b9 100644 --- a/src/app/view/home/block-detail-list/block-detail-list.component.html +++ b/src/app/view/home/block-detail-list/block-detail-list.component.html @@ -153,4 +153,40 @@
{{ "home.Hashrate" | translate }}
+