Supply growth error

This commit is contained in:
SuriyaR 2019-08-13 13:20:34 +05:30
parent c0bab51ab2
commit eadb90e8d5

View File

@ -1887,7 +1887,7 @@ let remaining_height = 0;
const BlockchainBlockPerSecondQuery = await getConnection() const BlockchainBlockPerSecondQuery = await getConnection()
.query( .query(
'select x.timestamp, SUM(x.reward) as total_reward_per_day \ '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 \ CASE \
WHEN height <= '+BLOCK_ERA_1+' THEN 16 \ WHEN height <= '+BLOCK_ERA_1+' THEN 16 \
WHEN height <= '+BLOCK_ERA_2+' THEN 8 \ WHEN height <= '+BLOCK_ERA_2+' THEN 8 \