Set reward to 0 by default until reward indexing is available

This commit is contained in:
nymkappa committed 2022-02-14 14:08:33 +09:00
1 parent c28f3fd4b6
commit d8e58ee622
1 file changed
+1 -1
+1 -1
View File
@@ -172,7 +172,7 @@ class BlocksRepository {
startHeight: number | null = null
): Promise<object[]> {
const params: any[] = [];
let query = `SELECT height, hash, tx_count, size, weight, pool_id, UNIX_TIMESTAMP(blockTimestamp) as timestamp, reward
let query = `SELECT height, hash, tx_count, size, weight, pool_id, UNIX_TIMESTAMP(blockTimestamp) as timestamp, 0 as reward
FROM blocks
WHERE pool_id = ?`;
params.push(poolId);