mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2025-04-04 09:58:22 +02:00
test
This commit is contained in:
parent
2a8388ddc8
commit
694af35937
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user