From 3b6830e2169530c626ec4086d8f0508d8bbc7077 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Thu, 6 Feb 2025 12:37:48 +1100 Subject: [PATCH] fix: Display number of txs in logs --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index b0f3576..f8c6cb8 100644 --- a/main.py +++ b/main.py @@ -83,6 +83,7 @@ def saveTransactions(txList, blockHeight): # Prepare data for batch insert txValues = [] for txData in txList: + print('.', end='', flush=True) txValues.append(( txData["hash"], txData["witnessHash"], txData["fee"], txData["rate"], txData["mtime"], blockHeight, txData["index"], txData["version"], @@ -101,7 +102,6 @@ def saveTransactions(txList, blockHeight): with dbSave.cursor() as cursor: cursor.executemany(query, txValues) dbSave.commit() - print('.', end='', flush=True) def saveBlock(blockData): hashes = [tx["hash"] for tx in blockData["txs"]]