From 2f13e8e04bc76e3f2f867a1523bbe7336bac0118 Mon Sep 17 00:00:00 2001 From: Ruben Buniatyan Date: Fri, 25 Oct 2024 00:53:46 +0200 Subject: [PATCH] Change config file extensions to `.json` --- src/Nethermind/Nethermind.Runner/Program.cs | 73 ++++++++++--------- .../configs/{AuraTest.cfg => AuraTest.json} | 0 .../{base-mainnet.cfg => base-mainnet.json} | 0 ..._archive.cfg => base-mainnet_archive.json} | 0 .../{base-sepolia.cfg => base-sepolia.json} | 0 ..._archive.cfg => base-sepolia_archive.json} | 0 .../configs/{chiado.cfg => chiado.json} | 0 ...chiado_archive.cfg => chiado_archive.json} | 0 .../configs/{energyweb.cfg => energyweb.json} | 0 ...web_archive.cfg => energyweb_archive.json} | 0 .../configs/{exosama.cfg => exosama.json} | 0 ...osama_archive.cfg => exosama_archive.json} | 0 .../configs/{gnosis.cfg => gnosis.json} | 0 ...gnosis_archive.cfg => gnosis_archive.json} | 0 .../configs/{hive.cfg => hive.json} | 0 .../configs/{holesky.cfg => holesky.json} | 0 ...lesky_archive.cfg => holesky_archive.json} | 0 .../{joc-mainnet.cfg => joc-mainnet.json} | 0 ...t_archive.cfg => joc-mainnet_archive.json} | 0 .../{joc-testnet.cfg => joc-testnet.json} | 0 ...t_archive.cfg => joc-testnet_archive.json} | 0 .../{linea-mainnet.cfg => linea-mainnet.json} | 0 ...archive.cfg => linea-mainnet_archive.json} | 0 .../{linea-sepolia.cfg => linea-sepolia.json} | 0 ...archive.cfg => linea-sepolia_archive.json} | 0 .../configs/{mainnet.cfg => mainnet.json} | 0 ...innet_archive.cfg => mainnet_archive.json} | 0 .../configs/{none.cfg => none.json} | 0 .../{op-mainnet.cfg => op-mainnet.json} | 0 ...et_archive.cfg => op-mainnet_archive.json} | 0 .../{op-sepolia.cfg => op-sepolia.json} | 0 ...ia_archive.cfg => op-sepolia_archive.json} | 0 .../configs/{poacore.cfg => poacore.json} | 0 ...acore_archive.cfg => poacore_archive.json} | 0 ...e_validator.cfg => poacore_validator.json} | 0 .../configs/{sepolia.cfg => sepolia.json} | 0 ...polia_archive.cfg => sepolia_archive.json} | 0 .../configs/{spaceneth.cfg => spaceneth.json} | 0 ...rsistent.cfg => spaceneth_persistent.json} | 0 .../configs/{volta.cfg => volta.json} | 0 .../{volta_archive.cfg => volta_archive.json} | 0 41 files changed, 39 insertions(+), 34 deletions(-) rename src/Nethermind/Nethermind.Runner/configs/{AuraTest.cfg => AuraTest.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{base-mainnet.cfg => base-mainnet.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{base-mainnet_archive.cfg => base-mainnet_archive.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{base-sepolia.cfg => base-sepolia.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{base-sepolia_archive.cfg => base-sepolia_archive.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{chiado.cfg => chiado.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{chiado_archive.cfg => chiado_archive.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{energyweb.cfg => energyweb.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{energyweb_archive.cfg => energyweb_archive.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{exosama.cfg => exosama.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{exosama_archive.cfg => exosama_archive.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{gnosis.cfg => gnosis.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{gnosis_archive.cfg => gnosis_archive.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{hive.cfg => hive.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{holesky.cfg => holesky.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{holesky_archive.cfg => holesky_archive.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{joc-mainnet.cfg => joc-mainnet.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{joc-mainnet_archive.cfg => joc-mainnet_archive.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{joc-testnet.cfg => joc-testnet.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{joc-testnet_archive.cfg => joc-testnet_archive.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{linea-mainnet.cfg => linea-mainnet.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{linea-mainnet_archive.cfg => linea-mainnet_archive.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{linea-sepolia.cfg => linea-sepolia.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{linea-sepolia_archive.cfg => linea-sepolia_archive.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{mainnet.cfg => mainnet.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{mainnet_archive.cfg => mainnet_archive.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{none.cfg => none.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{op-mainnet.cfg => op-mainnet.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{op-mainnet_archive.cfg => op-mainnet_archive.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{op-sepolia.cfg => op-sepolia.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{op-sepolia_archive.cfg => op-sepolia_archive.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{poacore.cfg => poacore.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{poacore_archive.cfg => poacore_archive.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{poacore_validator.cfg => poacore_validator.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{sepolia.cfg => sepolia.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{sepolia_archive.cfg => sepolia_archive.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{spaceneth.cfg => spaceneth.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{spaceneth_persistent.cfg => spaceneth_persistent.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{volta.cfg => volta.json} (100%) rename src/Nethermind/Nethermind.Runner/configs/{volta_archive.cfg => volta_archive.json} (100%) diff --git a/src/Nethermind/Nethermind.Runner/Program.cs b/src/Nethermind/Nethermind.Runner/Program.cs index d52e86d79689..57d0e46f4a47 100644 --- a/src/Nethermind/Nethermind.Runner/Program.cs +++ b/src/Nethermind/Nethermind.Runner/Program.cs @@ -374,60 +374,65 @@ IConfigProvider CreateConfigProvider(ParseResult parseResult) configProvider.AddSource(argsSource); configProvider.AddSource(new EnvConfigSource()); - string configDir = parseResult.GetResult(BasicOptions.ConfigurationDirectory)?.GetValueOrDefault(); - string configFilePath = parseResult.GetResult(BasicOptions.Configuration)?.GetValueOrDefault(); - string? configPathVariable = Environment.GetEnvironmentVariable("NETHERMIND_CONFIG"); + string configsDir = parseResult.GetResult(BasicOptions.ConfigurationDirectory)?.GetValueOrDefault(); + string configFile = parseResult.GetResult(BasicOptions.Configuration)?.GetValueOrDefault(); + string? configFileEnvVar = Environment.GetEnvironmentVariable("NETHERMIND_CONFIG"); - if (!string.IsNullOrWhiteSpace(configPathVariable)) + if (!string.IsNullOrWhiteSpace(configFileEnvVar)) { - configFilePath = configPathVariable; + configFile = configFileEnvVar; } - if (!PathUtils.IsExplicitlyRelative(configFilePath)) + // If the configuration is a rooted path, don't handle it + if (!Path.IsPathRooted(configFile)) { - configFilePath = configDir == "configs" - ? configFilePath.GetApplicationResourcePath() - : Path.Combine(configDir, string.Concat(configFilePath)); - } + // If the configuration doesn't have any directory info or file extension, + // append a supported file extension + var shouldAppendExtension = string.IsNullOrEmpty(Path.GetDirectoryName(configFile)) && + !Path.HasExtension(configFile); - if (!Path.HasExtension(configFilePath) && !configFilePath.Contains(Path.DirectorySeparatorChar)) - { - string redirectedConfigPath = Path.Combine(configDir, string.Concat(configFilePath, ".cfg")); - configFilePath = redirectedConfigPath; - if (!File.Exists(configFilePath)) + configFile = Path.Combine(configsDir, configFile); + + // If the resulting path is still not rooted, combine with the current directory + if (!Path.IsPathRooted(configFile)) { - throw new InvalidOperationException($"Configuration: {configFilePath} was not found."); + configFile = Path.Combine(AppContext.BaseDirectory, configFile); } - } - if (!Path.HasExtension(configFilePath)) - { - configFilePath = string.Concat(configFilePath, ".cfg"); - } - - // Fallback to "{executingDirectory}/configs/{configFile}" if "configs" catalog was not specified. - if (!File.Exists(configFilePath)) - { - string configName = Path.GetFileName(configFilePath); - string? configDirectory = Path.GetDirectoryName(configFilePath); - string redirectedConfigPath = Path.Combine(configDirectory ?? string.Empty, configDir, configName); - configFilePath = redirectedConfigPath; - if (!File.Exists(configFilePath)) + if (shouldAppendExtension) { - throw new InvalidOperationException($"Configuration: {configFilePath} was not found."); + string? fallback = null; + + foreach (var ext in new[] { ".json", ".cfg" }) + { + fallback = $"{configFile}{ext}"; + + if (File.Exists(fallback)) + { + configFile = fallback; + break; + } + } } } - logger.Info($"Reading config file from {configFilePath}"); - configProvider.AddSource(new JsonConfigSource(configFilePath)); + if (!File.Exists(configFile)) + throw new FileNotFoundException("Configuration not found.", configFile); + + logger.Info($"Loading configuration from {configFile}"); + + configProvider.AddSource(new JsonConfigSource(configFile)); configProvider.Initialize(); + var incorrectSettings = configProvider.FindIncorrectSettings(); - if (incorrectSettings.Errors.Count > 0) + + if (incorrectSettings.Errors.Any()) { logger.Warn($"Incorrect config settings found:{Environment.NewLine}{incorrectSettings.ErrorMsg}"); } logger.Info("Configuration initialized."); + return configProvider; } diff --git a/src/Nethermind/Nethermind.Runner/configs/AuraTest.cfg b/src/Nethermind/Nethermind.Runner/configs/AuraTest.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/AuraTest.cfg rename to src/Nethermind/Nethermind.Runner/configs/AuraTest.json diff --git a/src/Nethermind/Nethermind.Runner/configs/base-mainnet.cfg b/src/Nethermind/Nethermind.Runner/configs/base-mainnet.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/base-mainnet.cfg rename to src/Nethermind/Nethermind.Runner/configs/base-mainnet.json diff --git a/src/Nethermind/Nethermind.Runner/configs/base-mainnet_archive.cfg b/src/Nethermind/Nethermind.Runner/configs/base-mainnet_archive.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/base-mainnet_archive.cfg rename to src/Nethermind/Nethermind.Runner/configs/base-mainnet_archive.json diff --git a/src/Nethermind/Nethermind.Runner/configs/base-sepolia.cfg b/src/Nethermind/Nethermind.Runner/configs/base-sepolia.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/base-sepolia.cfg rename to src/Nethermind/Nethermind.Runner/configs/base-sepolia.json diff --git a/src/Nethermind/Nethermind.Runner/configs/base-sepolia_archive.cfg b/src/Nethermind/Nethermind.Runner/configs/base-sepolia_archive.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/base-sepolia_archive.cfg rename to src/Nethermind/Nethermind.Runner/configs/base-sepolia_archive.json diff --git a/src/Nethermind/Nethermind.Runner/configs/chiado.cfg b/src/Nethermind/Nethermind.Runner/configs/chiado.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/chiado.cfg rename to src/Nethermind/Nethermind.Runner/configs/chiado.json diff --git a/src/Nethermind/Nethermind.Runner/configs/chiado_archive.cfg b/src/Nethermind/Nethermind.Runner/configs/chiado_archive.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/chiado_archive.cfg rename to src/Nethermind/Nethermind.Runner/configs/chiado_archive.json diff --git a/src/Nethermind/Nethermind.Runner/configs/energyweb.cfg b/src/Nethermind/Nethermind.Runner/configs/energyweb.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/energyweb.cfg rename to src/Nethermind/Nethermind.Runner/configs/energyweb.json diff --git a/src/Nethermind/Nethermind.Runner/configs/energyweb_archive.cfg b/src/Nethermind/Nethermind.Runner/configs/energyweb_archive.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/energyweb_archive.cfg rename to src/Nethermind/Nethermind.Runner/configs/energyweb_archive.json diff --git a/src/Nethermind/Nethermind.Runner/configs/exosama.cfg b/src/Nethermind/Nethermind.Runner/configs/exosama.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/exosama.cfg rename to src/Nethermind/Nethermind.Runner/configs/exosama.json diff --git a/src/Nethermind/Nethermind.Runner/configs/exosama_archive.cfg b/src/Nethermind/Nethermind.Runner/configs/exosama_archive.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/exosama_archive.cfg rename to src/Nethermind/Nethermind.Runner/configs/exosama_archive.json diff --git a/src/Nethermind/Nethermind.Runner/configs/gnosis.cfg b/src/Nethermind/Nethermind.Runner/configs/gnosis.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/gnosis.cfg rename to src/Nethermind/Nethermind.Runner/configs/gnosis.json diff --git a/src/Nethermind/Nethermind.Runner/configs/gnosis_archive.cfg b/src/Nethermind/Nethermind.Runner/configs/gnosis_archive.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/gnosis_archive.cfg rename to src/Nethermind/Nethermind.Runner/configs/gnosis_archive.json diff --git a/src/Nethermind/Nethermind.Runner/configs/hive.cfg b/src/Nethermind/Nethermind.Runner/configs/hive.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/hive.cfg rename to src/Nethermind/Nethermind.Runner/configs/hive.json diff --git a/src/Nethermind/Nethermind.Runner/configs/holesky.cfg b/src/Nethermind/Nethermind.Runner/configs/holesky.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/holesky.cfg rename to src/Nethermind/Nethermind.Runner/configs/holesky.json diff --git a/src/Nethermind/Nethermind.Runner/configs/holesky_archive.cfg b/src/Nethermind/Nethermind.Runner/configs/holesky_archive.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/holesky_archive.cfg rename to src/Nethermind/Nethermind.Runner/configs/holesky_archive.json diff --git a/src/Nethermind/Nethermind.Runner/configs/joc-mainnet.cfg b/src/Nethermind/Nethermind.Runner/configs/joc-mainnet.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/joc-mainnet.cfg rename to src/Nethermind/Nethermind.Runner/configs/joc-mainnet.json diff --git a/src/Nethermind/Nethermind.Runner/configs/joc-mainnet_archive.cfg b/src/Nethermind/Nethermind.Runner/configs/joc-mainnet_archive.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/joc-mainnet_archive.cfg rename to src/Nethermind/Nethermind.Runner/configs/joc-mainnet_archive.json diff --git a/src/Nethermind/Nethermind.Runner/configs/joc-testnet.cfg b/src/Nethermind/Nethermind.Runner/configs/joc-testnet.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/joc-testnet.cfg rename to src/Nethermind/Nethermind.Runner/configs/joc-testnet.json diff --git a/src/Nethermind/Nethermind.Runner/configs/joc-testnet_archive.cfg b/src/Nethermind/Nethermind.Runner/configs/joc-testnet_archive.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/joc-testnet_archive.cfg rename to src/Nethermind/Nethermind.Runner/configs/joc-testnet_archive.json diff --git a/src/Nethermind/Nethermind.Runner/configs/linea-mainnet.cfg b/src/Nethermind/Nethermind.Runner/configs/linea-mainnet.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/linea-mainnet.cfg rename to src/Nethermind/Nethermind.Runner/configs/linea-mainnet.json diff --git a/src/Nethermind/Nethermind.Runner/configs/linea-mainnet_archive.cfg b/src/Nethermind/Nethermind.Runner/configs/linea-mainnet_archive.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/linea-mainnet_archive.cfg rename to src/Nethermind/Nethermind.Runner/configs/linea-mainnet_archive.json diff --git a/src/Nethermind/Nethermind.Runner/configs/linea-sepolia.cfg b/src/Nethermind/Nethermind.Runner/configs/linea-sepolia.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/linea-sepolia.cfg rename to src/Nethermind/Nethermind.Runner/configs/linea-sepolia.json diff --git a/src/Nethermind/Nethermind.Runner/configs/linea-sepolia_archive.cfg b/src/Nethermind/Nethermind.Runner/configs/linea-sepolia_archive.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/linea-sepolia_archive.cfg rename to src/Nethermind/Nethermind.Runner/configs/linea-sepolia_archive.json diff --git a/src/Nethermind/Nethermind.Runner/configs/mainnet.cfg b/src/Nethermind/Nethermind.Runner/configs/mainnet.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/mainnet.cfg rename to src/Nethermind/Nethermind.Runner/configs/mainnet.json diff --git a/src/Nethermind/Nethermind.Runner/configs/mainnet_archive.cfg b/src/Nethermind/Nethermind.Runner/configs/mainnet_archive.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/mainnet_archive.cfg rename to src/Nethermind/Nethermind.Runner/configs/mainnet_archive.json diff --git a/src/Nethermind/Nethermind.Runner/configs/none.cfg b/src/Nethermind/Nethermind.Runner/configs/none.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/none.cfg rename to src/Nethermind/Nethermind.Runner/configs/none.json diff --git a/src/Nethermind/Nethermind.Runner/configs/op-mainnet.cfg b/src/Nethermind/Nethermind.Runner/configs/op-mainnet.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/op-mainnet.cfg rename to src/Nethermind/Nethermind.Runner/configs/op-mainnet.json diff --git a/src/Nethermind/Nethermind.Runner/configs/op-mainnet_archive.cfg b/src/Nethermind/Nethermind.Runner/configs/op-mainnet_archive.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/op-mainnet_archive.cfg rename to src/Nethermind/Nethermind.Runner/configs/op-mainnet_archive.json diff --git a/src/Nethermind/Nethermind.Runner/configs/op-sepolia.cfg b/src/Nethermind/Nethermind.Runner/configs/op-sepolia.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/op-sepolia.cfg rename to src/Nethermind/Nethermind.Runner/configs/op-sepolia.json diff --git a/src/Nethermind/Nethermind.Runner/configs/op-sepolia_archive.cfg b/src/Nethermind/Nethermind.Runner/configs/op-sepolia_archive.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/op-sepolia_archive.cfg rename to src/Nethermind/Nethermind.Runner/configs/op-sepolia_archive.json diff --git a/src/Nethermind/Nethermind.Runner/configs/poacore.cfg b/src/Nethermind/Nethermind.Runner/configs/poacore.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/poacore.cfg rename to src/Nethermind/Nethermind.Runner/configs/poacore.json diff --git a/src/Nethermind/Nethermind.Runner/configs/poacore_archive.cfg b/src/Nethermind/Nethermind.Runner/configs/poacore_archive.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/poacore_archive.cfg rename to src/Nethermind/Nethermind.Runner/configs/poacore_archive.json diff --git a/src/Nethermind/Nethermind.Runner/configs/poacore_validator.cfg b/src/Nethermind/Nethermind.Runner/configs/poacore_validator.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/poacore_validator.cfg rename to src/Nethermind/Nethermind.Runner/configs/poacore_validator.json diff --git a/src/Nethermind/Nethermind.Runner/configs/sepolia.cfg b/src/Nethermind/Nethermind.Runner/configs/sepolia.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/sepolia.cfg rename to src/Nethermind/Nethermind.Runner/configs/sepolia.json diff --git a/src/Nethermind/Nethermind.Runner/configs/sepolia_archive.cfg b/src/Nethermind/Nethermind.Runner/configs/sepolia_archive.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/sepolia_archive.cfg rename to src/Nethermind/Nethermind.Runner/configs/sepolia_archive.json diff --git a/src/Nethermind/Nethermind.Runner/configs/spaceneth.cfg b/src/Nethermind/Nethermind.Runner/configs/spaceneth.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/spaceneth.cfg rename to src/Nethermind/Nethermind.Runner/configs/spaceneth.json diff --git a/src/Nethermind/Nethermind.Runner/configs/spaceneth_persistent.cfg b/src/Nethermind/Nethermind.Runner/configs/spaceneth_persistent.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/spaceneth_persistent.cfg rename to src/Nethermind/Nethermind.Runner/configs/spaceneth_persistent.json diff --git a/src/Nethermind/Nethermind.Runner/configs/volta.cfg b/src/Nethermind/Nethermind.Runner/configs/volta.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/volta.cfg rename to src/Nethermind/Nethermind.Runner/configs/volta.json diff --git a/src/Nethermind/Nethermind.Runner/configs/volta_archive.cfg b/src/Nethermind/Nethermind.Runner/configs/volta_archive.json similarity index 100% rename from src/Nethermind/Nethermind.Runner/configs/volta_archive.cfg rename to src/Nethermind/Nethermind.Runner/configs/volta_archive.json