mirror of
https://github.com/tendermint/tendermint.git
synced 2026-07-20 23:12:44 +00:00
Do not set address for self error
This commit is contained in:
+1
-1
@@ -570,7 +570,7 @@ func (sw *Switch) addPeer(pc peerConn) error {
|
||||
// and add to our addresses to avoid dialing again
|
||||
sw.addrBook.RemoveAddress(addr)
|
||||
sw.addrBook.AddOurAddress(addr)
|
||||
return ErrSwitchConnectToSelf{addr}
|
||||
return ErrSwitchConnectToSelf{}
|
||||
}
|
||||
|
||||
// Avoid duplicate
|
||||
|
||||
Reference in New Issue
Block a user