diff --git a/p2p/switch.go b/p2p/switch.go index af9324a9b..6cbca7675 100644 --- a/p2p/switch.go +++ b/p2p/switch.go @@ -509,10 +509,8 @@ func MakeConnectedSwitches(cfg *cfg.P2PConfig, n int, initSwitch func(int, *Swit panic(err) } - for i := 0; i < n; i++ { - for j := i; j < n; j++ { - connect(switches, i, j) - } + for i := 1; i < n; i++ { + connect(switches, 0, i) } return switches