No officer of any county shall directly or indirectly contract for or purchase any warrant issued by the county of which he is an officer at any discount whatever, upon the sum due thereon; and if any such officer shall so purchase or contract to purchase any such warrant he shall not be allowed in settlement the amount of said warrant or any part thereof, but shall forfeit the full amount due thereon, to be recovered by civil action in the suit of the state for the use of the county.
R.L.1910, § 7434.