Show block reward in the pool stat page

This commit is contained in:
nymkappa committed 2022-02-14 14:08:31 +09:00
1 parent 6c8f5c60c7
commit 4829624114
3 files changed
+78 -45

No files matched your search

+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
let query = `SELECT height, hash, tx_count, size, weight, pool_id, UNIX_TIMESTAMP(blockTimestamp) as timestamp, reward
FROM blocks
WHERE pool_id = ?`;
params.push(poolId);