diff --git a/pybtc/blockchain.py b/pybtc/blockchain.py index 3a746c8..89aee37 100644 --- a/pybtc/blockchain.py +++ b/pybtc/blockchain.py @@ -618,6 +618,7 @@ class Block(): def calculate_commitment(self, witness = None): wtxid_list = [b"\x00" * 32,] + print(len(self.transactions)) if not (len(self.transactions) == 1 and self.transactions[0].coinbase): for tx in self.transactions[0 if not self.transactions[0].coinbase else 1:]: wtxid_list.append(tx.whash)