From 9e3f06b93e851c6952e26af0aa3a1b13e1d3bf80 Mon Sep 17 00:00:00 2001 From: 4tochka Date: Mon, 6 May 2019 11:07:06 +0400 Subject: [PATCH] connector --- pybtc/connector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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