In case there is a continuance or an appeal from the magistrate's decision to the district court, the lessee or cropper, or the assigns of either, shall be allowed to retain possession of said property upon his giving an undertaking to the lessor or his assigns, or the adverse party, in a sum double the amount of the claim, if such claim does not amount to more than the value of such property, otherwise to double the value of such property, with good and sufficient surety, to be approved by the magistrate or the clerk of the superior court, conditioned for the faithful payment to the adverse party of such damages as he shall recover in said action.
N.C. Gen. Stat. § 42-18