If the county treasurer shall willfully fail or refuse at any time to do or perform any act required of him by sections 77-2312 to 77-2324, he shall be guilty of a Class I misdemeanor. It shall be the duty of the county attorney to enter and prosecute to final determination all suits for the recovery of any penalty arising under the conditions of any bond required to be given by the provisions of said sections.