create coinbase transaction
This commit is contained in:
parent
0f5bc49272
commit
16ae9a0e28
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user