Skip to content

Commit 7f0ab0f

Browse files
authored
Merge pull request #674 from ava-labs/one-node
make health tests to pass for 1 node
2 parents 28359b6 + 1d31bc8 commit 7f0ab0f

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)