diff --git a/server/controllers/BlockchainBlock.ts b/server/controllers/BlockchainBlock.ts index b9cda65..46ff1d7 100644 --- a/server/controllers/BlockchainBlock.ts +++ b/server/controllers/BlockchainBlock.ts @@ -1238,6 +1238,11 @@ export class BlockchainBlockController { var Maxrange = Math.max.apply(Math, TotalDifficultyNBlockQuery.map(function(o) { return o.tarket_difficulty; })); var Minrange = Math.min.apply(Math, TotalDifficultyNBlockQuery.map(function(o) { return o.tarket_difficulty; })); + if(Minrange != 0){ + Minrange = (Minrange - (Minrange * 0.2)); + } + Maxrange = (Maxrange + (Maxrange * 0.2)); + // Minrange = parseInt(Minrange); // var Minrange2 = parseInt(Minrange * 0.3); response.status(200).json({ @@ -1250,7 +1255,7 @@ export class BlockchainBlockController { // DifficultyCuckatoo: DifficultyCuckatoo, // DifficultyProgpow: DifficultyProgpow, Maxrange: Maxrange, - Minrange: (Minrange * 0.2), + Minrange: Minrange, TargetDifficulty: TargetDifficulty, tickFormat: tickFormat }, diff --git a/server/socket/block.ts b/server/socket/block.ts index a9daa75..bd654bc 100644 --- a/server/socket/block.ts +++ b/server/socket/block.ts @@ -217,6 +217,7 @@ export async function universalGetLatestBlockDetails(socket) { input_count: BlockchainLatestBlockQuery[0].input_count, kernel_count: BlockchainLatestBlockQuery[0].kernel_count, output_count: BlockchainLatestBlockQuery[0].output_count, + hash: BlockchainLatestBlockQuery[0].hash, proof: BlockchainLatestBlockQuery[0].proof, hasharray: hasharray, Difficulty: Difficulty, diff --git a/src/app/shared/components/header/header.component.html b/src/app/shared/components/header/header.component.html index 8c0c790..b2d3515 100755 --- a/src/app/shared/components/header/header.component.html +++ b/src/app/shared/components/header/header.component.html @@ -2,7 +2,19 @@