remove logging

This commit is contained in:
Ben Wilson
2023-08-06 17:45:30 -04:00
parent 32c1a34202
commit 24538d34ce
3 changed files with 4 additions and 9 deletions
+1 -6
View File
@@ -98,7 +98,7 @@ export class StratumV1Client {
private async handleMessage(message: string) {
console.log(`Received from ${this.extraNonceAndSessionId}`, message);
// console.log(`Received from ${this.extraNonceAndSessionId}`, message);
// Parse the message and check if it's the initial subscription message
let parsedMessage = null;
@@ -201,10 +201,7 @@ export class StratumV1Client {
if (errors.length === 0) {
this.clientAuthorization = authorizationMessage;
console.log('AUTH START');
//const response = this.buildSubscriptionResponse(authorizationMessage.id);
const success = await this.write(JSON.stringify(this.clientAuthorization.response()) + '\n');
console.log('AUTH FIN');
if (!success) {
return;
}
@@ -305,7 +302,6 @@ export class StratumV1Client {
}
}
console.log('test')
if (this.clientSubscription != null
&& this.clientAuthorization != null
@@ -563,7 +559,6 @@ export class StratumV1Client {
}
private async write(message: string): Promise<boolean> {
console.log(message)
try {
if (!this.socket.destroyed && !this.socket.writableEnded) {