Fixes validation for not deploying codex nodes
This commit is contained in:
parent
46ab3b31ca
commit
55811b20da
@ -143,9 +143,12 @@ namespace CodexNetDeployer
|
||||
}
|
||||
|
||||
if (IsPublicTestNet)
|
||||
{
|
||||
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.");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user