Commit for network hashrate

This commit is contained in:
shunmugam 2020-01-07 13:31:30 +05:30
parent 2495f4250f
commit 9e812aa6f6
2 changed files with 43 additions and 2 deletions

View File

@ -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
};
}

View File

@ -153,4 +153,40 @@
</p>
</div>
</div>
<div class="col-md-3">
<div
class="text-center detail_div"
>
<p class="mb-0 desc">{{ "home.Hashrate" | translate }}</p>
<p
class="count mb-0"
[ngClass]="latestblockdetail.blink == true ? 'item-highlight' : ''"
>
</p>
<div class="difficulty_datas">
<span class="day60_txt">Cuckoo &nbsp;&nbsp;&nbsp;&nbsp;: </span>
<span> {{ latestblockdetail.cuckoohashrate }} </span>
</div>
<div class="difficulty_datas">
<span class="day60_txt">ProgPoW &nbsp;&nbsp;&nbsp;&nbsp;: </span>
<span> {{ latestblockdetail.progpowhashrate }}</span>
</div>
<div class="difficulty_datas">
<span class="day60_txt">RandomX &nbsp;&nbsp;&nbsp;&nbsp;: </span>
<span>
{{ latestblockdetail.randomxhashrate }}
</span>
</div>
</div>
</div>
</div>