This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import WebSocket, { WebSocketServer } from 'ws'; | |
import crypto from 'crypto'; | |
export class Node { | |
private isValidTransactionFlag: boolean; | |
private data: string; | |
private wsServer: WebSocketServer; | |
private wsClients: WebSocket[]; | |
constructor() { | |
this.isValidTransactionFlag = false; |