mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
addressSettings.bestDifficulty
This commit is contained in:
@@ -409,11 +409,13 @@ export class StratumV1Client extends EasyUnsubscribe {
|
|||||||
if (submissionDifficulty > this.entity.bestDifficulty) {
|
if (submissionDifficulty > this.entity.bestDifficulty) {
|
||||||
await this.clientService.updateBestDifficulty(this.extraNonceAndSessionId, submissionDifficulty);
|
await this.clientService.updateBestDifficulty(this.extraNonceAndSessionId, submissionDifficulty);
|
||||||
this.entity.bestDifficulty = submissionDifficulty;
|
this.entity.bestDifficulty = submissionDifficulty;
|
||||||
|
if (submissionDifficulty > this.addressSettings.bestDifficulty) {
|
||||||
|
await this.addressSettingsService.updateBestDifficulty(this.addressSettings.address, submissionDifficulty);
|
||||||
|
this.addressSettings.bestDifficulty = submissionDifficulty;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (submissionDifficulty > this.addressSettings.bestDifficulty) {
|
|
||||||
await this.addressSettingsService.updateBestDifficulty(this.extraNonceAndSessionId, submissionDifficulty);
|
|
||||||
}
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
const err = new StratumErrorMessage(
|
const err = new StratumErrorMessage(
|
||||||
|
|||||||
Reference in New Issue
Block a user