From aa819bf5bae4394f115a2d81589514f3cedf9e25 Mon Sep 17 00:00:00 2001 From: Nishant Das Date: Fri, 4 Oct 2019 16:05:52 +0800 Subject: [PATCH] Change MultiAddr Conversion Error to Debug (#3702) * change to debug * check if IP is nil --- beacon-chain/p2p/discovery.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/beacon-chain/p2p/discovery.go b/beacon-chain/p2p/discovery.go index f37cc3fc7..a3bfe9871 100644 --- a/beacon-chain/p2p/discovery.go +++ b/beacon-chain/p2p/discovery.go @@ -133,6 +133,10 @@ func parseBootStrapAddrs(addrs []string) (discv5Nodes []string, kadDHTNodes []st func convertToMultiAddr(nodes []*enode.Node) []ma.Multiaddr { var multiAddrs []ma.Multiaddr for _, node := range nodes { + // ignore nodes with no ip address stored + if node.IP() == nil { + continue + } multiAddr, err := convertToSingleMultiAddr(node) if err != nil { log.WithError(err).Error("Could not convert to multiAddr")