This commit is contained in:
Ben Wilson
2023-12-04 08:33:47 -05:00
parent 0b147ea5db
commit 5a17528b8f
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -524,7 +524,7 @@ export class StratumV1Client {
if (submissionDifficulty > this.entity.bestDifficulty) {
await this.clientService.updateBestDifficulty(this.extraNonceAndSessionId, submissionDifficulty);
this.entity.bestDifficulty = submissionDifficulty;
if (submissionDifficulty > (await this.addressSettingsService.getSettings(this.clientAuthorization.address)).bestDifficulty) {
if (submissionDifficulty > (await this.addressSettingsService.getSettings(this.clientAuthorization.address, true)).bestDifficulty) {
await this.addressSettingsService.updateBestDifficulty(this.clientAuthorization.address, submissionDifficulty);
}
}