Isolate API process from mining workers

This commit is contained in:
Ben
2026-06-07 22:53:15 -04:00
parent 51e3afb7e7
commit f14d76c2ea
4 changed files with 49 additions and 11 deletions
+5
View File
@@ -68,6 +68,11 @@ export class StratumV1Service implements OnModuleInit {
async onModuleInit(): Promise<void> {
if (process.env.API_ONLY == 'true') {
console.log('API-only process skipping Stratum socket listeners');
return;
}
if (process.env.MASTER == 'true') {
await this.clientService.deleteAll();
await this.redisMessagingService?.clearClientPresence();