update best difficulty

This commit is contained in:
Ben
2023-07-02 19:44:41 -04:00
parent 0b07992365
commit 8d7dacf4b1
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -353,11 +353,11 @@ export class StratumV1Client extends EasyUnsubscribe {
'Duplicate share').response();
console.error(err);
await this.promiseSocket.write(err);
}
if (submissionDifficulty > this.entity.bestDifficulty) {
await this.clientService.updateBestDifficulty(this.extraNonce, submissionDifficulty);
this.entity.bestDifficulty = submissionDifficulty;
}
if (submissionDifficulty > this.entity.bestDifficulty) {
await this.clientService.updateBestDifficulty(this.extraNonce, submissionDifficulty);
this.entity.bestDifficulty = submissionDifficulty;
}
} else {