From ae31b5ff72a98871c2231ffc484009ccfe85d1b4 Mon Sep 17 00:00:00 2001 From: henopied <13500516+henopied@users.noreply.github.com> Date: Mon, 25 Apr 2022 04:05:47 -0500 Subject: [PATCH] p2p: fix type of DiscSubprotocolError (#24747) It was 'int' accidentally, should be DiscReason instead. --- p2p/peer_error.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p/peer_error.go b/p2p/peer_error.go index aad1a65c7a..3028685041 100644 --- a/p2p/peer_error.go +++ b/p2p/peer_error.go @@ -69,7 +69,7 @@ const ( DiscUnexpectedIdentity DiscSelf DiscReadTimeout - DiscSubprotocolError = 0x10 + DiscSubprotocolError = DiscReason(0x10) ) var discReasonToString = [...]string{