tweak timeout and starting diff

This commit is contained in:
Benjamin Wilson
2024-12-22 10:03:03 -05:00
parent d513dab932
commit 912ae9fe85
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ export class StratumV1Client {
private statistics: StratumV1ClientStatistics;
private stratumInitialized = false;
private usedSuggestedDifficulty = false;
private sessionDifficulty: number = 1000000;
private sessionDifficulty: number = 100000;
private clientEntity: ClientEntity;
private creatingEntity: Promise<void>;
+2 -2
View File
@@ -44,8 +44,8 @@ export class StratumV1Service implements OnModuleInit {
private startSocketServer(port: number) {
const server = new Server(async (socket: Socket) => {
//2 min
socket.setTimeout(1000 * 60 * 2);
//5 min
socket.setTimeout(1000 * 60 * 5);
const client = new StratumV1Client(
socket,