From e28d4e8ccca4f61aee9039ad592660ddc20aa83b Mon Sep 17 00:00:00 2001 From: shunmugam Date: Thu, 17 Oct 2019 11:52:54 +0530 Subject: [PATCH] Commit -fix graph not to show genesis block details --- server/controllers/BlockchainBlock.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/controllers/BlockchainBlock.ts b/server/controllers/BlockchainBlock.ts index 109df20..bae49de 100644 --- a/server/controllers/BlockchainBlock.ts +++ b/server/controllers/BlockchainBlock.ts @@ -1360,7 +1360,7 @@ export class BlockchainBlockController { DATE_TRUNC('minute', timestamp at time zone '" + process.env.TIME_ZONE + "') as date \ - from blockchain_block where " + + from blockchain_block where height>0 and " + timeIntervalQry + " order by height) as a WHERE a.total_difficulty_randomx IS NOT NULL AND a.total_difficulty_progpow IS NOT NULL AND a.total_difficulty_cuckatoo IS NOT NULL AND a.total_difficulty_cuckatoo != '0' AND a.total_difficulty_randomx != '0' AND a.total_difficulty_progpow != '0'", ) @@ -1374,7 +1374,7 @@ export class BlockchainBlockController { DATE_TRUNC('minute', timestamp at time zone '" + process.env.TIME_ZONE + "') as date \ - from blockchain_block where " + + from blockchain_block where height >0 and " + timeIntervalQry + " order by height", ) @@ -1522,7 +1522,7 @@ export class BlockchainBlockController { "')) as date, Count( CASE WHEN proof = 'RandomX' THEN 1 ELSE NULL END) AS RandomX, \ Count( CASE WHEN proof = 'Cuckoo' THEN 1 ELSE NULL END) AS Cuckoo,\ Count( CASE WHEN proof = 'ProgPow' THEN 1 ELSE NULL END) AS ProgPow \ - from blockchain_block where height > 0 " + + from blockchain_block where height > 0 and " + timeIntervalQry + "group by DATE_TRUNC('day', timestamp at time zone '" + process.env.TIME_ZONE +