create coinbase transaction
This commit is contained in:
parent
2f2b2d26f4
commit
3edac78c3e
@ -424,7 +424,7 @@ def merkle_branches(tx_hash_list):
|
|||||||
tx_hash_list = list(tx_hash_list)
|
tx_hash_list = list(tx_hash_list)
|
||||||
branches = []
|
branches = []
|
||||||
if len(tx_hash_list) == 1:
|
if len(tx_hash_list) == 1:
|
||||||
return tx_hash_list[0]
|
return tx_hash_list
|
||||||
tx_hash_list.pop(0)
|
tx_hash_list.pop(0)
|
||||||
while True:
|
while True:
|
||||||
branches.append(tx_hash_list.pop(0))
|
branches.append(tx_hash_list.pop(0))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user