Fixes validation for not deploying codex nodes

This commit is contained in:
benbierens 2023-12-11 08:30:05 +01:00
parent 46ab3b31ca
commit 55811b20da
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
1 changed files with 5 additions and 2 deletions

View File

@ -144,8 +144,11 @@ namespace CodexNetDeployer
if (IsPublicTestNet)
{
if (PublicDiscPorts.Split(",").Length != NumberOfCodexNodes) errors.Add("Number of public discovery-ports provided does not match number of codex nodes.");
if (PublicListenPorts.Split(",").Length != NumberOfCodexNodes) errors.Add("Number of public listen-ports provided does not match number of codex nodes.");
if (NumberOfCodexNodes > 0)
{
if (PublicDiscPorts.Split(",").Length != NumberOfCodexNodes) errors.Add("Number of public discovery-ports provided does not match number of codex nodes.");
if (PublicListenPorts.Split(",").Length != NumberOfCodexNodes) errors.Add("Number of public listen-ports provided does not match number of codex nodes.");
}
if (PublicGethDiscPort == 0) errors.Add("Geth public discovery port is not set.");
if (PublicGethListenPort == 0) errors.Add("Geth public listen port is not set.");
}