pub fn too_many_attempts(tx: &TransactionRepoModel) -> bool
Checks if a transaction has too many attempts