From 8e8cc6e473865623ecf13272d53675af20b7c239 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Kami=C5=84ski?= Date: Thu, 17 Oct 2024 13:56:07 +0200 Subject: [PATCH] fix calculate weight --- scripts/data/client2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/data/client2.py b/scripts/data/client2.py index 60ccc3b2..209e3c83 100644 --- a/scripts/data/client2.py +++ b/scripts/data/client2.py @@ -27,7 +27,7 @@ def calculate_batch_weight(block_data): return sum( len(tx["inputs"]) + len(tx["outputs"]) for block in block_data["blocks"] - for tx in block["transactions"] + for tx in block["data"]["transactions"] ) # Generator function to create jobs