After a4eaaa6ac53606a1533b56050af77961d8c27dc7 `p2p_invalid_messages` isn't really checking anymore what it was supposed to check, so that should be fixed in some way.