create coinbase transaction

This commit is contained in:
admin 2018-02-12 13:27:45 +04:00
parent 2f2b2d26f4
commit 3edac78c3e

View File

@ -424,7 +424,7 @@ def merkle_branches(tx_hash_list):
tx_hash_list = list(tx_hash_list)
branches = []
if len(tx_hash_list) == 1:
return tx_hash_list[0]
return tx_hash_list
tx_hash_list.pop(0)
while True:
branches.append(tx_hash_list.pop(0))