From 811e7972f9c87cceee567fc383a3dbb5eb25030f Mon Sep 17 00:00:00 2001 From: Benjamin Wilson Date: Fri, 5 Jul 2024 08:13:55 -0400 Subject: [PATCH] always clear jobs on diff change --- src/models/StratumV1Client.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/models/StratumV1Client.ts b/src/models/StratumV1Client.ts index 9f83fe4..67ada0b 100644 --- a/src/models/StratumV1Client.ts +++ b/src/models/StratumV1Client.ts @@ -587,9 +587,9 @@ export class StratumV1Client { await this.socket.write(data); - - // we need to clear the jobs so that the difficulty set takes effect. Otherwise the different miner implementations can cause issues const jobTemplate = await firstValueFrom(this.stratumV1JobsService.newMiningJob$); + // we need to clear the jobs so that the difficulty set takes effect. Otherwise the different miner implementations can cause issues + jobTemplate.blockData.clearJobs = true; await this.sendNewMiningJob(jobTemplate); }