mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
msic
This commit is contained in:
@@ -223,7 +223,7 @@ export class StratumV1Client extends EasyUnsubscribe {
|
||||
|
||||
|
||||
this.entity = await this.clientService.save({
|
||||
id: this.id,
|
||||
sessionId: this.id,
|
||||
address: this.clientAuthorization.address,
|
||||
clientName: this.clientAuthorization.worker,
|
||||
startTime: new Date(),
|
||||
@@ -268,6 +268,7 @@ export class StratumV1Client extends EasyUnsubscribe {
|
||||
await this.statistics.addSubmission(this.entity, this.clientDifficulty);
|
||||
if (diff > this.entity.bestDifficulty) {
|
||||
await this.clientService.updateBestDifficulty(this.id, diff);
|
||||
this.entity.bestDifficulty = diff;
|
||||
}
|
||||
if (diff >= (networkDifficulty / 2)) {
|
||||
console.log('!!! BOCK FOUND !!!');
|
||||
|
||||
Reference in New Issue
Block a user