function to generate self nodeinfo struct