Show correct reward in pool stat page
This commit is contained in:
parent
a436d3a173
commit
f381da0f78
@ -172,7 +172,7 @@ class BlocksRepository {
|
|||||||
startHeight: number | null = null
|
startHeight: number | null = null
|
||||||
): Promise<object[]> {
|
): Promise<object[]> {
|
||||||
const params: any[] = [];
|
const params: any[] = [];
|
||||||
let query = `SELECT height, hash as id, tx_count, size, weight, pool_id, UNIX_TIMESTAMP(blockTimestamp) as timestamp, 0 as reward
|
let query = `SELECT height, hash as id, tx_count, size, weight, pool_id, UNIX_TIMESTAMP(blockTimestamp) as timestamp, reward
|
||||||
FROM blocks
|
FROM blocks
|
||||||
WHERE pool_id = ?`;
|
WHERE pool_id = ?`;
|
||||||
params.push(poolId);
|
params.push(poolId);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user