p2p code now checks chain id on connection