always clear jobs on diff change

This commit is contained in:
Benjamin Wilson
2024-07-05 08:13:55 -04:00
parent 14f95a7fa4
commit 3e4cb4ff5d
+2 -2
View File
@@ -598,9 +598,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);
}