mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
userAgent
This commit is contained in:
@@ -106,7 +106,7 @@ export class ClientService {
|
|||||||
|
|
||||||
public async getUserAgents() {
|
public async getUserAgents() {
|
||||||
const result = await this.clientRepository.createQueryBuilder('client')
|
const result = await this.clientRepository.createQueryBuilder('client')
|
||||||
.select('client.userAgent as userAgent')
|
.select('client.userAgent as "userAgent"')
|
||||||
.addSelect('COUNT(client.userAgent)', 'count')
|
.addSelect('COUNT(client.userAgent)', 'count')
|
||||||
.addSelect('MAX(client.bestDifficulty)', 'bestDifficulty')
|
.addSelect('MAX(client.bestDifficulty)', 'bestDifficulty')
|
||||||
.addSelect('SUM(client.hashRate)', 'totalHashRate')
|
.addSelect('SUM(client.hashRate)', 'totalHashRate')
|
||||||
|
|||||||
@@ -615,7 +615,7 @@ export class StratumV1Client {
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
console.error(`Error: Cannot write to closed or ended socket. ${this.extraNonceAndSessionId} ${message}`);
|
//console.error(`Error: Cannot write to closed or ended socket. ${this.extraNonceAndSessionId} ${message}`);
|
||||||
this.destroy();
|
this.destroy();
|
||||||
if (!this.socket.destroyed) {
|
if (!this.socket.destroyed) {
|
||||||
this.socket.destroy();
|
this.socket.destroy();
|
||||||
@@ -629,7 +629,7 @@ export class StratumV1Client {
|
|||||||
} else if (!this.socket.destroyed) {
|
} else if (!this.socket.destroyed) {
|
||||||
this.socket.destroy();
|
this.socket.destroy();
|
||||||
}
|
}
|
||||||
console.error(`Error occurred while writing to socket: ${this.extraNonceAndSessionId}`, error);
|
//console.error(`Error occurred while writing to socket: ${this.extraNonceAndSessionId}`, error);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user