This commit is contained in:
Ben Wilson 2023-07-30 12:03:19 -04:00
parent 2a8388ddc8
commit 694af35937

View File

@ -414,13 +414,13 @@ export class StratumV1Client extends EasyUnsubscribe {
// return false;
// }
// 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) {
// await this.addressSettingsService.updateBestDifficulty(this.clientAuthorization.address, submissionDifficulty);
// }
// }
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) {
await this.addressSettingsService.updateBestDifficulty(this.clientAuthorization.address, submissionDifficulty);
}
}