diff --git a/src/node/net/p2p.ml b/src/node/net/p2p.ml index 75bce8221..0ff445895 100644 --- a/src/node/net/p2p.ml +++ b/src/node/net/p2p.ml @@ -415,9 +415,10 @@ module Make (P: PARAMS) = struct Crypto_box.check_proof_of_work public_key proof_of_work Crypto_box.default_target in if not work_proved then - (*debug "connection rejected (invalid proof of work)" - pp_gid my_gid Ipaddr.pp_hum addr port ;*) + begin + debug "connection rejected (invalid proof of work)"; cancel () + end else begin match common_version P.supported_versions versions with | None ->