Commit 74d1cb6d authored by Julien's avatar Julien

P2p: Don't announce banned points

parent 583163a9
Pipeline #50428580 passed with stages
in 8 minutes and 8 seconds
......@@ -748,8 +748,9 @@ let compare_known_point_info p1 p2 =
let list_known_points pool =
let knowns =
P2p_point.Table.fold
(fun _ point_info acc ->
(fun point_id point_info acc ->
if P2p_point_state.Info.known_public point_info
|| not (Points.banned pool point_id)
then point_info :: acc
else acc)
pool.known_points [] in
......@@ -1304,4 +1305,3 @@ let destroy ({ config ; peer_meta_config } as pool) =
let on_new_connection pool f =
pool.new_connection_hook <- f :: pool.new_connection_hook
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment