From eadb90e8d59714b97da8d7c9d96f3f8c3c7ecaa2 Mon Sep 17 00:00:00 2001 From: SuriyaR Date: Tue, 13 Aug 2019 13:20:34 +0530 Subject: [PATCH] Supply growth error --- server/controllers/BlockchainBlock.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/controllers/BlockchainBlock.ts b/server/controllers/BlockchainBlock.ts index 69e52b5..1c0e71b 100644 --- a/server/controllers/BlockchainBlock.ts +++ b/server/controllers/BlockchainBlock.ts @@ -1887,7 +1887,7 @@ let remaining_height = 0; const BlockchainBlockPerSecondQuery = await getConnection() .query( 'select x.timestamp, SUM(x.reward) as total_reward_per_day \ - from (SELECT hash, height, CAST(timestamp AS DATE), \ + from (SELECT DISTINCT height, hash, CAST(timestamp AS DATE), \ CASE \ WHEN height <= '+BLOCK_ERA_1+' THEN 16 \ WHEN height <= '+BLOCK_ERA_2+' THEN 8 \