Browse Source

only log errors, dial correct addresses

"this means if there are lookup errors or typos in the persistent_peers,
tendermint will fail to start ? didn't some one ask for us not to do
this previously ?"
pull/1350/head
Anton Kaliaev 7 years ago
parent
commit
3233c318ea
No known key found for this signature in database GPG Key ID: 7B6881D965918214
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      p2p/switch.go

+ 1
- 3
p2p/switch.go View File

@ -350,12 +350,10 @@ func (sw *Switch) IsDialing(id ID) bool {
// DialPeersAsync dials a list of peers asynchronously in random order (optionally, making them persistent).
func (sw *Switch) DialPeersAsync(addrBook AddrBook, peers []string, persistent bool) error {
netAddrs, errs := NewNetAddressStrings(peers)
// only log errors, dial correct addresses
for _, err := range errs {
sw.Logger.Error("Error in peer's address", "err", err)
}
if len(errs) > 0 {
return errors.New("Errors in peer addresses (see errors above)")
}
ourAddr := sw.nodeInfo.NetAddress()


Loading…
Cancel
Save