Moved websocket handling to its own file and cleaned up index.ts

This commit is contained in:
softsimon
2020-02-26 17:49:53 +07:00
parent ff92ae43a5
commit 7fbc6f1461
7 changed files with 231 additions and 188 deletions

View File

@@ -113,8 +113,7 @@ class Mempool {
}
});
console.log(`New mempool size: ${Object.keys(newMempool).length} ` +
` Change: ${transactions.length - Object.keys(newMempool).length}`);
console.log(`New mempool size: ${Object.keys(newMempool).length} Change: ${diff}`);
this.mempoolCache = newMempool;