From 1e9929f75353eb69ceaa33ff8a483437cd02f4c1 Mon Sep 17 00:00:00 2001
From: Tristan Smith <tristan.smith@gmail.com>
Date: Sun, 26 May 2024 19:21:09 -0400
Subject: [PATCH] reduced credentials file, removed out of scope log_file
 variable

---
 credentials.json | 4 +---
 finder.py        | 4 ++--
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/credentials.json b/credentials.json
index c3684d2..191239e 100644
--- a/credentials.json
+++ b/credentials.json
@@ -1,6 +1,4 @@
 {
-    "stock": [["miner", "miner"], ["root", "root"]],
-    "braiins": [["root", "root"]],
-    "luxos": [["root", "root"]]
+    "creds": [["miner", "miner"], ["root", "root"]]
 }
 
diff --git a/finder.py b/finder.py
index dae993a..80fc356 100644
--- a/finder.py
+++ b/finder.py
@@ -103,7 +103,7 @@ def get_worker_id(ssh_client):
         match = re.search(r'"user" *: *"[^.]*\.(\w+)"', config_content)
         if match:
             worker_id = match.group(1)
-            print(f"Got Worker ID: ", worker_id)
+            print(f"Got Worker ID: {worker_id}")
         else:
             worker_id = "Unknown"
     except Exception as e:
@@ -140,7 +140,7 @@ def main():
                         failed_checks = unique_asic_errors.get(chain, 0) + 1
                         unique_asic_errors[chain] = failed_checks
                         if asic_count == 0 and failed_checks == 3:
-                            results.add((worker_id, ip, log_file, "ASIC Error", f"Chain {chain} has 3 failed checks with {asic_count} ASICs found"))
+                            results.add((worker_id, ip, log[0], "ASIC Error", f"Chain {chain} has 3 failed checks with {asic_count} ASICs found"))
                     
                     ssh_client.close()
                     break