From aca6ae011bc52916c07687647a7570397208fe86 Mon Sep 17 00:00:00 2001 From: Geometer1729 <16kuhnb@gmail.com> Date: Wed, 12 Jun 2024 15:05:04 -0400 Subject: [PATCH] ignore any leading/trailing whitespace in the peerlist --- src/lib/mina_net2/multiaddr.ml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/mina_net2/multiaddr.ml b/src/lib/mina_net2/multiaddr.ml index 8efeff34fc1..ed5710fe635 100644 --- a/src/lib/mina_net2/multiaddr.ml +++ b/src/lib/mina_net2/multiaddr.ml @@ -39,6 +39,7 @@ let valid_as_peer t = let of_file_contents contents : t list = String.split ~on:'\n' contents + |> List.map ~f:String.strip |> List.filter ~f:(fun s -> if valid_as_peer s then true else if String.is_empty s then false