block template class
This commit is contained in:
parent
6848a7e975
commit
4e61a365ef
@ -902,7 +902,7 @@ class BlockTemplate():
|
|||||||
merkle_root = merkleroot_from_branches(self.merkle_branches, cbh)
|
merkle_root = merkleroot_from_branches(self.merkle_branches, cbh)
|
||||||
header = version + prev_hash + merkle_root + time + bits + nonce
|
header = version + prev_hash + merkle_root + time + bits + nonce
|
||||||
block = hexlify(header).decode()
|
block = hexlify(header).decode()
|
||||||
block += to_var_int(len (self.transactions)+1)
|
block += hexlify(to_var_int(len (self.transactions)+1)).decode()
|
||||||
block += cb
|
block += cb
|
||||||
for t in self.transactions:
|
for t in self.transactions:
|
||||||
block += t["data"]
|
block += t["data"]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user