issues fixed
This commit is contained in:
parent
d0694e5de3
commit
d79a0f66ae
@ -1169,6 +1169,13 @@ export class BlockchainBlockController {
|
|||||||
blockDate.push(moment(e.date).format('YYYY-MM-DD'));
|
blockDate.push(moment(e.date).format('YYYY-MM-DD'));
|
||||||
blocks.push(parseInt(e.blocks));
|
blocks.push(parseInt(e.blocks));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if(date.length == 0){
|
||||||
|
date = [moment(Date.now()).format('YYYY-MM-DD')];
|
||||||
|
blockDate = [moment(Date.now()).format('YYYY-MM-DD')];
|
||||||
|
blocks = [0];
|
||||||
|
}
|
||||||
|
|
||||||
response.status(200).json({
|
response.status(200).json({
|
||||||
status: 200,
|
status: 200,
|
||||||
timestamp: Date.now(),
|
timestamp: Date.now(),
|
||||||
@ -1334,6 +1341,13 @@ export class BlockchainBlockController {
|
|||||||
return moment(e.date).format(dateFormat);
|
return moment(e.date).format(dateFormat);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if(date.length == 0){
|
||||||
|
date = [moment(Date.now()).format(dateFormat)];
|
||||||
|
DifficultyCuckatoo = [0];
|
||||||
|
DifficultyProgpow = [0];
|
||||||
|
DifficultyRandomx = [0];
|
||||||
|
}
|
||||||
|
|
||||||
// TotalDifficultyNBlockQuery.forEach(e => {
|
// TotalDifficultyNBlockQuery.forEach(e => {
|
||||||
// date.push(moment(e.date).format(dateFormat));
|
// date.push(moment(e.date).format(dateFormat));
|
||||||
// DifficultyCuckatoo.push(parseInt(e.total_difficulty_cuckatoo));
|
// DifficultyCuckatoo.push(parseInt(e.total_difficulty_cuckatoo));
|
||||||
@ -1467,6 +1481,13 @@ export class BlockchainBlockController {
|
|||||||
ProgPow.push(parseInt(e.progpow));
|
ProgPow.push(parseInt(e.progpow));
|
||||||
RandomX.push(parseInt(e.randomx));
|
RandomX.push(parseInt(e.randomx));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if(date.length == 0){
|
||||||
|
date = [moment(Date.now()).format('YYYY-MM-DD')];
|
||||||
|
Cuckoo = [0];
|
||||||
|
ProgPow = [0];
|
||||||
|
RandomX = [0];
|
||||||
|
}
|
||||||
response.status(200).json({
|
response.status(200).json({
|
||||||
status: 200,
|
status: 200,
|
||||||
timestamp: Date.now(),
|
timestamp: Date.now(),
|
||||||
@ -1920,6 +1941,11 @@ let remaining_height = 0;
|
|||||||
date.push(moment(e.date).format('YYYY-MM-DD'));
|
date.push(moment(e.date).format('YYYY-MM-DD'));
|
||||||
period.push(parseInt(e.period));
|
period.push(parseInt(e.period));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if(date.length == 0){
|
||||||
|
date = [moment(Date.now()).format('YYYY-MM-DD')];
|
||||||
|
period = [0];
|
||||||
|
}
|
||||||
response.status(200).json({
|
response.status(200).json({
|
||||||
status: 200,
|
status: 200,
|
||||||
timestamp: Date.now(),
|
timestamp: Date.now(),
|
||||||
@ -2031,6 +2057,12 @@ let remaining_height = 0;
|
|||||||
addedreward.push(prev_value + parseInt(e.total_reward_per_day));
|
addedreward.push(prev_value + parseInt(e.total_reward_per_day));
|
||||||
prev_value = prev_value + parseInt(e.total_reward_per_day);
|
prev_value = prev_value + parseInt(e.total_reward_per_day);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if(date.length == 0){
|
||||||
|
date = [moment(Date.now()).format('YYYY-MM-DD')];
|
||||||
|
total_reward_per_day = [0];
|
||||||
|
addedreward = [0];
|
||||||
|
}
|
||||||
response.status(200).json({
|
response.status(200).json({
|
||||||
status: 200,
|
status: 200,
|
||||||
timestamp: Date.now(),
|
timestamp: Date.now(),
|
||||||
@ -2125,6 +2157,16 @@ let remaining_height = 0;
|
|||||||
ProgPow.push(parseInt(e.progpow));
|
ProgPow.push(parseInt(e.progpow));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if(date.length == 0){
|
||||||
|
date = [moment(Date.now()).format('YYYY-MM-DD')];
|
||||||
|
RandomXper = [0];
|
||||||
|
Cuckooper = [0];
|
||||||
|
ProgPowper = [0];
|
||||||
|
RandomX = [0];
|
||||||
|
Cuckoo = [0];
|
||||||
|
ProgPow = [0];
|
||||||
|
}
|
||||||
|
|
||||||
response.status(200).json({
|
response.status(200).json({
|
||||||
status: 200,
|
status: 200,
|
||||||
timestamp: Date.now(),
|
timestamp: Date.now(),
|
||||||
|
@ -646,6 +646,11 @@ export class BlockchainKernelController {
|
|||||||
date.push(moment(e.date).format('YYYY-MM-DD'));
|
date.push(moment(e.date).format('YYYY-MM-DD'));
|
||||||
Fee.push(parseInt(e.fee));
|
Fee.push(parseInt(e.fee));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if(date.length == 0){
|
||||||
|
date = [moment(Date.now()).format('YYYY-MM-DD')];
|
||||||
|
Fee = [0];
|
||||||
|
}
|
||||||
response.status(200).json({
|
response.status(200).json({
|
||||||
status: 200,
|
status: 200,
|
||||||
timestamp: Date.now(),
|
timestamp: Date.now(),
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
class="count mb-0"
|
class="count mb-0"
|
||||||
[ngClass]="latestblockdetail.blink == true ? 'item-highlight' : ''"
|
[ngClass]="latestblockdetail.blink == true ? 'item-highlight' : ''"
|
||||||
>
|
>
|
||||||
{{ latestblockdetail.letest_block_num }} <span class="">{{ latestblockdetail.letest_block_duration }}</span>
|
{{ latestblockdetail.letest_block_num | number }} <span class="">{{ latestblockdetail.letest_block_duration | number }}</span>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -591,12 +591,14 @@ export class GraphListComponent implements OnInit {
|
|||||||
tickangle: -45,
|
tickangle: -45,
|
||||||
tickformat: tickformat,
|
tickformat: tickformat,
|
||||||
fixedrange: true,
|
fixedrange: true,
|
||||||
|
rangemode: 'nonnegative',
|
||||||
domain: [0.2, 0.8]
|
domain: [0.2, 0.8]
|
||||||
// showgrid: true
|
// showgrid: true
|
||||||
},
|
},
|
||||||
yaxis: {
|
yaxis: {
|
||||||
title: 'Cuckoo',
|
title: 'Cuckoo',
|
||||||
fixedrange: true,
|
fixedrange: true,
|
||||||
|
rangemode: 'nonnegative'
|
||||||
// showgrid: true,
|
// showgrid: true,
|
||||||
// range: range
|
// range: range
|
||||||
},
|
},
|
||||||
@ -606,6 +608,7 @@ export class GraphListComponent implements OnInit {
|
|||||||
// showgrid: true,
|
// showgrid: true,
|
||||||
// range: range,
|
// range: range,
|
||||||
overlaying: 'y',
|
overlaying: 'y',
|
||||||
|
rangemode: 'nonnegative',
|
||||||
side: 'left',
|
side: 'left',
|
||||||
position: 1.25
|
position: 1.25
|
||||||
},
|
},
|
||||||
@ -616,6 +619,7 @@ export class GraphListComponent implements OnInit {
|
|||||||
// range: range,
|
// range: range,
|
||||||
anchor: 'x',
|
anchor: 'x',
|
||||||
overlaying: 'y',
|
overlaying: 'y',
|
||||||
|
rangemode: 'nonnegative',
|
||||||
side: 'right'
|
side: 'right'
|
||||||
|
|
||||||
},
|
},
|
||||||
@ -737,12 +741,14 @@ export class GraphListComponent implements OnInit {
|
|||||||
tickangle: -45,
|
tickangle: -45,
|
||||||
tickformat: '%m-%d',
|
tickformat: '%m-%d',
|
||||||
showgrid: true,
|
showgrid: true,
|
||||||
|
rangemode: 'nonnegative',
|
||||||
fixedrange: true
|
fixedrange: true
|
||||||
},
|
},
|
||||||
yaxis: {
|
yaxis: {
|
||||||
title: 'Blocks',
|
title: 'Blocks',
|
||||||
showgrid: true,
|
showgrid: true,
|
||||||
fixedrange: true
|
fixedrange: true,
|
||||||
|
rangemode: 'nonnegative'
|
||||||
},
|
},
|
||||||
margin: {
|
margin: {
|
||||||
l: 50,
|
l: 50,
|
||||||
@ -780,12 +786,14 @@ export class GraphListComponent implements OnInit {
|
|||||||
tickangle: -45,
|
tickangle: -45,
|
||||||
showgrid: true,
|
showgrid: true,
|
||||||
title: 'Blocks Height',
|
title: 'Blocks Height',
|
||||||
|
rangemode: 'nonnegative',
|
||||||
fixedrange: true
|
fixedrange: true
|
||||||
},
|
},
|
||||||
yaxis: {
|
yaxis: {
|
||||||
title: 'Seonds',
|
title: 'Seonds',
|
||||||
showgrid: true,
|
showgrid: true,
|
||||||
fixedrange: true
|
fixedrange: true,
|
||||||
|
rangemode: 'nonnegative'
|
||||||
},
|
},
|
||||||
margin: {
|
margin: {
|
||||||
l: 50,
|
l: 50,
|
||||||
@ -824,10 +832,12 @@ export class GraphListComponent implements OnInit {
|
|||||||
tickangle: -45,
|
tickangle: -45,
|
||||||
tickformat: '%m-%d',
|
tickformat: '%m-%d',
|
||||||
showgrid: true,
|
showgrid: true,
|
||||||
fixedrange: true
|
fixedrange: true,
|
||||||
|
rangemode: 'nonnegative'
|
||||||
},
|
},
|
||||||
yaxis: {
|
yaxis: {
|
||||||
title: 'Blocks',
|
title: 'Blocks',
|
||||||
|
rangemode: 'nonnegative',
|
||||||
showgrid: true,
|
showgrid: true,
|
||||||
fixedrange: true
|
fixedrange: true
|
||||||
},
|
},
|
||||||
@ -940,7 +950,7 @@ export class GraphListComponent implements OnInit {
|
|||||||
y: bPeriod,
|
y: bPeriod,
|
||||||
text: bPeriod,
|
text: bPeriod,
|
||||||
name: '',
|
name: '',
|
||||||
hovertemplate: '%{x}<br> Blocks Per Sec : %{text:,}',
|
hovertemplate: '%{x}<br> Seconds per Block : %{text:,}',
|
||||||
fill: 'tozeroy',
|
fill: 'tozeroy',
|
||||||
type: 'line',
|
type: 'line',
|
||||||
line: {
|
line: {
|
||||||
@ -1224,13 +1234,15 @@ export class GraphListComponent implements OnInit {
|
|||||||
showgrid: false,
|
showgrid: false,
|
||||||
zeroline: false,
|
zeroline: false,
|
||||||
tickformat: '%m-%d',
|
tickformat: '%m-%d',
|
||||||
fixedrange: true
|
fixedrange: true,
|
||||||
|
rangemode: 'nonnegative'
|
||||||
},
|
},
|
||||||
yaxis: {
|
yaxis: {
|
||||||
showline: false,
|
showline: false,
|
||||||
title: 'Estimated Hashrate (GH/s)',
|
title: 'Estimated Hashrate (GH/s)',
|
||||||
showgrid: true,
|
showgrid: true,
|
||||||
fixedrange: true
|
fixedrange: true,
|
||||||
|
rangemode: 'nonnegative',
|
||||||
},
|
},
|
||||||
margin: {
|
margin: {
|
||||||
l: 50,
|
l: 50,
|
||||||
@ -1263,6 +1275,7 @@ export class GraphListComponent implements OnInit {
|
|||||||
yaxis: {
|
yaxis: {
|
||||||
title: 'Cuckoo',
|
title: 'Cuckoo',
|
||||||
fixedrange: true,
|
fixedrange: true,
|
||||||
|
rangemode: 'nonnegative',
|
||||||
// showgrid: true,
|
// showgrid: true,
|
||||||
// range: range
|
// range: range
|
||||||
},
|
},
|
||||||
@ -1272,6 +1285,7 @@ export class GraphListComponent implements OnInit {
|
|||||||
// showgrid: true,
|
// showgrid: true,
|
||||||
// range: range,
|
// range: range,
|
||||||
overlaying: 'y',
|
overlaying: 'y',
|
||||||
|
rangemode: 'nonnegative',
|
||||||
side: 'left',
|
side: 'left',
|
||||||
position: 1.25
|
position: 1.25
|
||||||
},
|
},
|
||||||
@ -1280,6 +1294,7 @@ export class GraphListComponent implements OnInit {
|
|||||||
fixedrange: true,
|
fixedrange: true,
|
||||||
// showgrid: true,
|
// showgrid: true,
|
||||||
// range: range,
|
// range: range,
|
||||||
|
rangemode: 'nonnegative',
|
||||||
anchor: 'x',
|
anchor: 'x',
|
||||||
overlaying: 'y',
|
overlaying: 'y',
|
||||||
side: 'right'
|
side: 'right'
|
||||||
|
@ -280,7 +280,7 @@
|
|||||||
<div class="col-6 col-md-3 tble_col">
|
<div class="col-6 col-md-3 tble_col">
|
||||||
<div class="block_div peers_diff text-left" title="Cuckaroo : {{ peer.total_difficulty.cuckaroo | number }}, Cuckatoo : {{ peer.total_difficulty.cuckatoo | number }}, Progpow : {{ peer.total_difficulty.progpow | number }}, Randomx : {{ peer.total_difficulty.randomx | number }}">
|
<div class="block_div peers_diff text-left" title="Cuckaroo : {{ peer.total_difficulty.cuckaroo | number }}, Cuckatoo : {{ peer.total_difficulty.cuckatoo | number }}, Progpow : {{ peer.total_difficulty.progpow | number }}, Randomx : {{ peer.total_difficulty.randomx | number }}">
|
||||||
<h6>Total Difficulty</h6>
|
<h6>Total Difficulty</h6>
|
||||||
<span class="blck_value ">{{ peer.total_difficulty.cuckaroo }},{{ peer.total_difficulty.cuckatoo}},{{ peer.total_difficulty.progpow}},{{ peer.total_difficulty.randomx}}</span>
|
<span class="blck_value ">{{ peer.total_difficulty.cuckaroo | number }} / {{ peer.total_difficulty.cuckatoo | number}} / {{ peer.total_difficulty.progpow | number}} / {{ peer.total_difficulty.randomx | number}}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user