Skip to content

Commit 1d31bc8

Browse files
committed
make health tests to pass for 1 node
1 parent 28359b6 commit 1d31bc8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

local/network.go

+3
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,9 @@ func NewDefaultConfigNNodes(binaryPath string, numNodes uint32) (network.Config,
434434
if int(numNodes) < len(netConfig.NodeConfigs) {
435435
netConfig.NodeConfigs = netConfig.NodeConfigs[:numNodes]
436436
}
437+
if int(numNodes) == 1 {
438+
netConfig.Flags[config.SybilProtectionEnabledKey] = false
439+
}
437440
return netConfig, nil
438441
}
439442

0 commit comments

Comments
 (0)