diff --git a/pybtc/connector.py b/pybtc/connector.py index 99a3c8b..458d70a 100644 --- a/pybtc/connector.py +++ b/pybtc/connector.py @@ -980,7 +980,7 @@ def decode_block_tx(block): for t in b["rawTx"].values(): b["amount"] += t["amount"] b["strippedSize"] += t["bSize"] - b["strippedSize"] += var_int_len(len(b["tx"])) + b["strippedSize"] += var_int_len(len(b["rawTx"])) b["weight"] = b["strippedSize"] * 3 + b["size"] return b