diff --git a/flow/cmd/validate_peer.go b/flow/cmd/validate_peer.go index 2de6345c14..b3eb16c941 100644 --- a/flow/cmd/validate_peer.go +++ b/flow/cmd/validate_peer.go @@ -47,7 +47,7 @@ func (h *FlowRequestHandler) ValidatePeer( return nil, err } - if isValid { + if !isValid { return &protos.ValidatePeerResponse{ Status: protos.ValidatePeerStatus_INVALID, Message: fmt.Sprintf("%s peer %s must be of version 12 or above. Current version: %d",