There shall also be filed with the petition a good and sufficient undertaking, to be approved by the board of supervisors, in double the amount of the probable cost of forming the district, conditioned that the sureties shall pay the cost in case the formation of the district is not effected.