From ea686388a434903e4e3c34d1c3447e9b0ae281b1 Mon Sep 17 00:00:00 2001 From: ThatBen Date: Mon, 2 Jun 2025 18:53:26 +0200 Subject: [PATCH] Adjust autoclient speed parameters --- Tools/AutoClient/CodexWrapper.cs | 10 +++++++++- Tools/AutoClient/Configuration.cs | 2 +- Tools/AutoClient/Modes/FolderStore/SlowModeHandler.cs | 4 ++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Tools/AutoClient/CodexWrapper.cs b/Tools/AutoClient/CodexWrapper.cs index 5e602d2f..550d913d 100644 --- a/Tools/AutoClient/CodexWrapper.cs +++ b/Tools/AutoClient/CodexWrapper.cs @@ -66,9 +66,17 @@ namespace AutoClient private (uint, uint) GetDurability() { (uint, uint)[] options = [ + (4, 1), (4, 2), + (5, 1), (5, 2), - (10, 5), + (6, 1), + (6, 2), + (6, 3), + (10, 2), + (10, 4), + (20, 2), + (20, 4), (20, 10) ]; diff --git a/Tools/AutoClient/Configuration.cs b/Tools/AutoClient/Configuration.cs index 65996333..cf4fd1a4 100644 --- a/Tools/AutoClient/Configuration.cs +++ b/Tools/AutoClient/Configuration.cs @@ -60,7 +60,7 @@ namespace AutoClient "/root/codex-testnet-starter/scripts/eth_8.address"; [Uniform("slowModeDelayMinutes", "smdm", "SLOWMODEDELAYMINUTES", false, "When contract failure threshold is reached, slow down process for each file by this amount of minutes.")] - public int SlowModeDelayMinutes { get; set; } = 60 * 1; + public int SlowModeDelayMinutes { get; set; } = 30 * 1; public string LogPath { diff --git a/Tools/AutoClient/Modes/FolderStore/SlowModeHandler.cs b/Tools/AutoClient/Modes/FolderStore/SlowModeHandler.cs index 37d3f7ee..0b17a53c 100644 --- a/Tools/AutoClient/Modes/FolderStore/SlowModeHandler.cs +++ b/Tools/AutoClient/Modes/FolderStore/SlowModeHandler.cs @@ -18,7 +18,7 @@ if (slowMode) { recoveryCount++; - if (recoveryCount > 3) + if (recoveryCount > 2) { Log("Recovery limit reached. Exiting slow mode."); slowMode = false; @@ -30,7 +30,7 @@ public void OnFailure() { failureCount++; - if (failureCount > 3 && !slowMode) + if (failureCount > 5 && !slowMode) { Log("Failure limit reached. Entering slow mode."); slowMode = true;