diff --git a/main.py b/main.py index f44a109..23eefa7 100644 --- a/main.py +++ b/main.py @@ -263,7 +263,7 @@ def getFirstMissingBlock() -> int: """Finds the first missing block height in the database.""" # Fetch all existing block heights in ascending order - result = dbGet.query("SELECT height FROM blocks ORDER BY height ASC").result + result = dbGet.execute("SELECT height FROM blocks ORDER BY height ASC").result heights = [row[0] for row in result] if not heights: