mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-12 20:50:05 +00:00
Change MultiAddr Conversion Error to Debug (#3702)
* change to debug * check if IP is nil
This commit is contained in:
parent
273871940c
commit
aa819bf5ba
@ -133,6 +133,10 @@ func parseBootStrapAddrs(addrs []string) (discv5Nodes []string, kadDHTNodes []st
|
|||||||
func convertToMultiAddr(nodes []*enode.Node) []ma.Multiaddr {
|
func convertToMultiAddr(nodes []*enode.Node) []ma.Multiaddr {
|
||||||
var multiAddrs []ma.Multiaddr
|
var multiAddrs []ma.Multiaddr
|
||||||
for _, node := range nodes {
|
for _, node := range nodes {
|
||||||
|
// ignore nodes with no ip address stored
|
||||||
|
if node.IP() == nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
multiAddr, err := convertToSingleMultiAddr(node)
|
multiAddr, err := convertToSingleMultiAddr(node)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.WithError(err).Error("Could not convert to multiAddr")
|
log.WithError(err).Error("Could not convert to multiAddr")
|
||||||
|
Loading…
Reference in New Issue
Block a user