From f7b7c630ae7fe06be1babd3cb1f11707ae9b7a4f Mon Sep 17 00:00:00 2001
From: shunmugam
Date: Wed, 8 Jan 2020 15:12:36 +0530
Subject: [PATCH] modification
---
server/utils/common.ts | 5 ++++-
.../home/block-detail-list/block-detail-list.component.html | 6 +++---
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/server/utils/common.ts b/server/utils/common.ts
index 102af2d..bc1da42 100644
--- a/server/utils/common.ts
+++ b/server/utils/common.ts
@@ -284,9 +284,12 @@ let currentReward = 16;
}
}
- let cuckoohashrate = await network_hashrate(block_height,31,targetdifficultycuckatoo);
+ let cuckoohashrate = await network_hashrate(block_height,31,targetdifficultycuckatoo+targetdifficultycuckaroo);
let progpowhashrate = await network_hashrate(block_height,16,targetdifficultyprogpow);
let randomxhashrate = await network_hashrate(block_height,16,targetdifficultyrandomx);
+ cuckoohashrate = Math.round(cuckoohashrate)
+ progpowhashrate = Math.round(progpowhashrate)
+ randomxhashrate = Math.round(randomxhashrate)
return {
block_height,
letest_block,
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 aecfc87..a4f1cd5 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
@@ -167,18 +167,18 @@
Cuckoo :
- {{ latestblockdetail.cuckoohashrate }}
+ {{ latestblockdetail.cuckoohashrate }} Gps
ProgPoW :
- {{ latestblockdetail.progpowhashrate }}
+ {{ latestblockdetail.progpowhashrate }} Hps
RandomX :
- {{ latestblockdetail.randomxhashrate }}
+ {{ latestblockdetail.randomxhashrate }} Hps