fix: missing clusterID in node config

This commit is contained in:
Richard Ramos 2024-01-30 15:48:44 -04:00 committed by richΛrd
parent d537807fbd
commit 0dd07a825a
1 changed files with 2 additions and 0 deletions

View File

@ -43,6 +43,7 @@ type
RendezvousNodes*: seq[string]
WakuNodes*: seq[string]
DiscV5BootstrapNodes*: seq[string]
ClusterID*: int
LightEthConfig* = object
@ -249,6 +250,7 @@ proc toNetwork*(jsonObj: JsonNode): Network =
proc toClusterConfig*(jsonObj: JsonNode): ClusterConfig =
discard jsonObj.getProp("Enabled", result.Enabled)
discard jsonObj.getProp("Fleet", result.Fleet)
discard jsonObj.getProp("ClusterID", result.ClusterID)
var arr: JsonNode
if(jsonObj.getProp("StaticNodes", arr)):