From d05ef0db145b127c28251e4429ae43beb1db7ed4 Mon Sep 17 00:00:00 2001 From: Oliver Weichhold Date: Mon, 19 Sep 2022 17:02:32 +0200 Subject: [PATCH] Increase database default command timeout. Related to #1080 --- src/Miningcore/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Miningcore/Program.cs b/src/Miningcore/Program.cs index bf435f3ab..cb5581159 100644 --- a/src/Miningcore/Program.cs +++ b/src/Miningcore/Program.cs @@ -879,7 +879,7 @@ private static void ConfigurePostgres(PostgresConfig pgConfig, ContainerBuilder connectionString.Append($"SSL Password={pgConfig.TlsPassword};"); } - connectionString.Append($"CommandTimeout={pgConfig.CommandTimeout ?? 120};"); + connectionString.Append($"CommandTimeout={pgConfig.CommandTimeout ?? 300};"); logger.Debug(()=> $"Using postgres connection string: {connectionString}");