total dificulty issue fixed
This commit is contained in:
parent
6652ee583b
commit
79fd1eb489
@ -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) {
|
||||
|
@ -76,7 +76,7 @@
|
||||
<!-- title="Cuckaroo : {{ hashvalue.target_difficulty_cuckaroo | number }}, Cuckatoo : {{ hashvalue.target_difficulty_cuckatoo | number }}, Progpow : {{ hashvalue.target_difficulty_progpow | number }}, Randomx : {{ hashvalue.target_difficulty_randomx | number }}" -->
|
||||
<div class="block_div">
|
||||
<h6>Difficulty</h6><span
|
||||
class="blck_value">{{(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}}</span>
|
||||
class="blck_value">{{(hashvalue.powalgo == 'Cuckoo') ? (hashvalue.TotalCuckoo | number) : (hashvalue.powalgo == 'RandomX') ? (hashvalue.TotalDifficultyRandomx | number) : (hashvalue.powalgo == 'ProgPow') ? (hashvalue.TotalDifficultyProgpow | number) : 0}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6 col-sm-6 col-md-3 tble_col">
|
||||
|
Loading…
Reference in New Issue
Block a user