Show block reward in the pool stat page

This commit is contained in:
nymkappa
2022-02-11 17:55:38 +09:00
parent f2abedfbaa
commit e1f3c662b2
3 changed files with 78 additions and 45 deletions

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);