mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
test
This commit is contained in:
@@ -400,19 +400,19 @@ export class StratumV1Client extends EasyUnsubscribe {
|
|||||||
await this.addressSettingsService.resetBestDifficultyAndShares();
|
await this.addressSettingsService.resetBestDifficultyAndShares();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// try {
|
try {
|
||||||
// await this.statistics.addSubmission(this.entity, submissionHash, this.sessionDifficulty);
|
await this.statistics.addSubmission(this.entity, submissionHash, this.sessionDifficulty);
|
||||||
//await this.addressSettingsService.addShares(this.clientAuthorization.address, this.sessionDifficulty);
|
//await this.addressSettingsService.addShares(this.clientAuthorization.address, this.sessionDifficulty);
|
||||||
// } catch (e) {
|
} catch (e) {
|
||||||
// console.log(e);
|
console.log(e);
|
||||||
// const err = new StratumErrorMessage(
|
const err = new StratumErrorMessage(
|
||||||
// submission.id,
|
submission.id,
|
||||||
// eStratumErrorCode.DuplicateShare,
|
eStratumErrorCode.DuplicateShare,
|
||||||
// 'Duplicate share').response();
|
'Duplicate share').response();
|
||||||
// console.error(err);
|
console.error(err);
|
||||||
// await this.promiseSocket.write(err);
|
await this.promiseSocket.write(err);
|
||||||
// return false;
|
return false;
|
||||||
// }
|
}
|
||||||
|
|
||||||
if (submissionDifficulty > this.entity.bestDifficulty) {
|
if (submissionDifficulty > this.entity.bestDifficulty) {
|
||||||
await this.clientService.updateBestDifficulty(this.extraNonceAndSessionId, submissionDifficulty);
|
await this.clientService.updateBestDifficulty(this.extraNonceAndSessionId, submissionDifficulty);
|
||||||
|
|||||||
Reference in New Issue
Block a user