mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-29 08:42:14 +00:00
connect first switch to others (Refs #808)
This commit is contained in:
parent
ec87c740a7
commit
e785697a64
@ -509,10 +509,8 @@ func MakeConnectedSwitches(cfg *cfg.P2PConfig, n int, initSwitch func(int, *Swit
|
|||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
for i := 0; i < n; i++ {
|
for i := 1; i < n; i++ {
|
||||||
for j := i; j < n; j++ {
|
connect(switches, 0, i)
|
||||||
connect(switches, i, j)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return switches
|
return switches
|
||||||
|
Loading…
x
Reference in New Issue
Block a user