block template

This commit is contained in:
Ben Wilson
2023-06-10 12:25:51 -04:00
parent 01b65b893a
commit deb3aa30d4
7 changed files with 85 additions and 12 deletions
+3 -1
View File
@@ -1,6 +1,7 @@
import { Injectable } from '@nestjs/common';
import { Server, Socket } from 'net';
import { CoinbaseConstructorService } from './coinbase-constructor.service';
import { StratumV1Client } from './models/StratumV1Client';
@Injectable()
@@ -10,7 +11,8 @@ export class BitcoinStratumProvider {
private server: Server;
constructor() {
constructor(private coinbaseConstructorService: CoinbaseConstructorService) {
this.server = new Server((socket: Socket) => {
console.log('New client connected:', socket.remoteAddress);