diff --git a/waku/waku_enr/multiaddr.nim b/waku/waku_enr/multiaddr.nim index a779faf53e..0ae50e883d 100644 --- a/waku/waku_enr/multiaddr.nim +++ b/waku/waku_enr/multiaddr.nim @@ -55,7 +55,8 @@ func decodeMultiaddrs(buffer: seq[byte]): EnrResult[seq[MultiAddress]] = return err("malformed multiaddr field: invalid length") let addrRaw = ?readBytes(buffer, addrLen.int, pos) - let address = MultiAddress.init(addrRaw).get() + let address = MultiAddress.init(addrRaw).valueOr: + continue # Not a valid multiaddress multiaddrs.add(address)