diff --git a/server/controllers/BlockchainBlock.ts b/server/controllers/BlockchainBlock.ts index f37348e..a0a7b64 100644 --- a/server/controllers/BlockchainBlock.ts +++ b/server/controllers/BlockchainBlock.ts @@ -1481,6 +1481,9 @@ export class BlockchainBlockController { } block_height = BlockchainLatestBlockQuery[0].height; + var TotalCuckoo=parseInt(BlockchainLatestBlockQuery[0].total_difficulty_cuckatoo) + + parseInt(BlockchainLatestBlockQuery[0].total_difficulty_cuckaroo); + response.status(200).json({ status: 200, timestamp: Date.now(), @@ -1495,7 +1498,12 @@ export class BlockchainBlockController { targetdifficultycuckaroo, targetdifficultycuckatoo, targetdifficultyprogpow, - targetdifficultyrandomx + targetdifficultyrandomx, + TotalCuckoo, + TotalDifficultyCuckaroo:BlockchainLatestBlockQuery[0].total_difficulty_cuckaroo, + TotalDifficultyCuckatoo:BlockchainLatestBlockQuery[0].total_difficulty_cuckatoo, + TotalDifficultyProgpow:BlockchainLatestBlockQuery[0].total_difficulty_progpow, + TotalDifficultyRandomx:BlockchainLatestBlockQuery[0].total_difficulty_randomx }, }); } catch (error) { diff --git a/src/app/view/home/latestblocks/latestblocks.component.html b/src/app/view/home/latestblocks/latestblocks.component.html index b6d8511..8128c68 100644 --- a/src/app/view/home/latestblocks/latestblocks.component.html +++ b/src/app/view/home/latestblocks/latestblocks.component.html @@ -76,7 +76,7 @@
Difficulty
{{(hashvalue.powalgo == 'Cuckoo') ? ((hashvalue.target_difficulty_cuckatoo + hashvalue.target_difficulty_cuckaroo) | number) : (hashvalue.powalgo == 'RandomX') ? (hashvalue.target_difficulty_randomx | number) : (hashvalue.powalgo == 'ProgPow') ? (hashvalue.target_difficulty_progpow | number) : 0}} + class="blck_value">{{(hashvalue.powalgo == 'Cuckoo') ? (hashvalue.TotalCuckoo | number) : (hashvalue.powalgo == 'RandomX') ? (hashvalue.TotalDifficultyRandomx | number) : (hashvalue.powalgo == 'ProgPow') ? (hashvalue.TotalDifficultyProgpow | number) : 0}}