This commit is contained in:
Ben Wilson
2023-08-08 19:39:16 -04:00
parent b1cfe07222
commit 2e0b66577d
+2 -3
View File
@@ -521,7 +521,7 @@ export class StratumV1Client {
} }
if (targetDiff != this.sessionDifficulty) { if (targetDiff != this.sessionDifficulty) {
console.log(`Adjusting ${this.extraNonceAndSessionId} difficulty from ${this.sessionDifficulty} to ${targetDiff}`); //console.log(`Adjusting ${this.extraNonceAndSessionId} difficulty from ${this.sessionDifficulty} to ${targetDiff}`);
this.sessionDifficulty = targetDiff; this.sessionDifficulty = targetDiff;
const data = JSON.stringify({ const data = JSON.stringify({
@@ -572,7 +572,6 @@ export class StratumV1Client {
if (error) { if (error) {
reject(error); reject(error);
} else { } else {
resolve(true); resolve(true);
} }
}); });
@@ -580,7 +579,7 @@ export class StratumV1Client {
return true; return true;
} else { } else {
console.error(`Error: Cannot write to closed or ended socket. ${this.extraNonceAndSessionId}`); console.error(`Error: Cannot write to closed or ended socket. ${this.extraNonceAndSessionId} ${message}`);
this.destroy(); this.destroy();
return false; return false;
} }