Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions app/api/pool-stats/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ interface AggregatorPoolData {

// Counted work (sum of accepted share difficulty) for the current round, from
// the locally-cached per-participant totals.
// eslint-disable-next-line @typescript-eslint/no-unused-vars
function getWorkSinceLastBlock(): number | null {
try {
const row = getDb()
Expand Down Expand Up @@ -85,7 +84,7 @@ export async function GET() {
hashrate: parseHashrate(hashrateData.hashrate5m),
users: statsData.Users,
workers: statsData.Workers,
workSinceLastBlock: 0, // TODO: getWorkSinceLastBlock(),
workSinceLastBlock: getWorkSinceLastBlock(),
};

return NextResponse.json(poolStats);
Expand Down
Loading