Limit background services by process role

This commit is contained in:
Ben
2026-06-07 23:18:00 -04:00
parent 13106347b2
commit 4155335bb5
3 changed files with 15 additions and 2 deletions
+3 -1
View File
@@ -154,7 +154,9 @@ export class StratumV1JobsService {
shareReplay({ refCount: true, bufferSize: 1 })
)
this.newMiningJob$.subscribe();
if (process.env.API_ONLY !== 'true') {
this.newMiningJob$.subscribe();
}
}
private calculateNetworkDifficulty(nBits: number) {