This website works better with JavaScript.
Home
Help
Sign In
zolfa
/
tendermint
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
221
Wiki
Activity
Browse Source
connect first switch to others (Refs
#808
)
pull/812/head
Anton Kaliaev
7 years ago
parent
ec87c740a7
commit
e785697a64
No known key found for this signature in database
GPG Key ID:
7B6881D965918214
1 changed files
with
2 additions
and
4 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-4
p2p/switch.go
+ 2
- 4
p2p/switch.go
View File
@ -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
Write
Preview
Loading…
Cancel
Save