timing adjustments

This commit is contained in:
Benjamin Wilson
2024-09-16 18:32:43 -04:00
parent b9b5fe2cf5
commit d6863fad28
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ const CACHE_SIZE = 30;
const MIN_DIFF = 0.001;
export class StratumV1ClientStatistics {
public targetSubmitShareEveryNSeconds: number = 60;
public targetSubmitShareEveryNSeconds: number = 30;
private shares: number = 0;
private acceptedCount: number = 0;
+2 -2
View File
@@ -44,8 +44,8 @@ export class StratumV1Service implements OnModuleInit {
private startSocketServer(port: number) {
const server = new Server(async (socket: Socket) => {
//10 min
socket.setTimeout(1000 * 60 * 10);
//2 min
socket.setTimeout(1000 * 60 * 2);
const client = new StratumV1Client(
socket,