mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
Restore lightweight info endpoint
This commit is contained in:
@@ -43,7 +43,6 @@ export class AppController {
|
|||||||
return cachedResult;
|
return cachedResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const blockData = await this.blocksService.getFoundBlocks();
|
const blockData = await this.blocksService.getFoundBlocks();
|
||||||
const highScores = await this.addressSettingsService.getHighScores();
|
const highScores = await this.addressSettingsService.getHighScores();
|
||||||
const poolAuthority = await this.stratumV2Service.getPoolAuthorityPublicKey();
|
const poolAuthority = await this.stratumV2Service.getPoolAuthorityPublicKey();
|
||||||
@@ -79,7 +78,6 @@ export class AppController {
|
|||||||
blockData,
|
blockData,
|
||||||
userAgents,
|
userAgents,
|
||||||
highScores,
|
highScores,
|
||||||
accounting: await this.shareAccountingService.getPoolSummary(),
|
|
||||||
sv2: {
|
sv2: {
|
||||||
poolAuthorityPublicKey: poolAuthority.publicKey,
|
poolAuthorityPublicKey: poolAuthority.publicKey,
|
||||||
authorityKeyConfigured: poolAuthority.configured
|
authorityKeyConfigured: poolAuthority.configured
|
||||||
@@ -87,8 +85,8 @@ export class AppController {
|
|||||||
uptime: this.uptime
|
uptime: this.uptime
|
||||||
};
|
};
|
||||||
|
|
||||||
// Keep online miner counts responsive after reconnect cleanup.
|
// Match the pre-Timescale dashboard cache behavior; live accounting is exposed separately.
|
||||||
await this.setCached(CACHE_KEY, data, 15 * 1000);
|
await this.setCached(CACHE_KEY, data, 5 * 60 * 1000);
|
||||||
|
|
||||||
return data;
|
return data;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user