Function createLibp2pAndUpdateOptions