mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Merge 6737331c4c into merged_master (Bitcoin PR bitcoin/bitcoin#29363)
This commit is contained in:
commit
6bf2279acc
1 changed files with 2 additions and 2 deletions
|
|
@ -1546,7 +1546,7 @@ class CPartialMerkleTree:
|
|||
self.vBits = []
|
||||
|
||||
def deserialize(self, f):
|
||||
self.nTransactions = int.from_bytes(f.read(4), "little", signed=True)
|
||||
self.nTransactions = int.from_bytes(f.read(4), "little")
|
||||
self.vHash = deser_uint256_vector(f)
|
||||
vBytes = deser_string(f)
|
||||
self.vBits = []
|
||||
|
|
@ -1555,7 +1555,7 @@ class CPartialMerkleTree:
|
|||
|
||||
def serialize(self):
|
||||
r = b""
|
||||
r += self.nTransactions.to_bytes(4, "little", signed=True)
|
||||
r += self.nTransactions.to_bytes(4, "little")
|
||||
r += ser_uint256_vector(self.vHash)
|
||||
vBytesArray = bytearray([0x00] * ((len(self.vBits) + 7)//8))
|
||||
for i in range(len(self.vBits)):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue