don't attempt to destroy socket on end event

This commit is contained in:
Ben Wilson
2023-08-06 00:08:09 -04:00
parent 9bda704e13
commit 06375151c8
2 changed files with 2 additions and 7 deletions
-3
View File
@@ -309,7 +309,6 @@ export class StratumV1Client {
).subscribe(async (jobTemplate) => {
try {
await this.sendNewMiningJob(jobTemplate);
} catch (e) {
this.promiseSocket.socket.emit('end', true);
console.error(e);
@@ -345,8 +344,6 @@ export class StratumV1Client {
let payoutInformation;
const devFeeAddress = this.configService.get('DEV_FEE_ADDRESS');
//50Th/s
console.log('HASH RATE');
console.log(hashRate);
const noFee = hashRate != 0 && hashRate < 50000000000000;
if (noFee || devFeeAddress == null || devFeeAddress.length < 1) {
payoutInformation = [