Merge 6737331c4c into merged_master (Bitcoin PR bitcoin/bitcoin#29363)

This commit is contained in:
Byron Hambly 2025-11-30 16:54:12 +02:00
commit 6bf2279acc
No known key found for this signature in database
GPG key ID: DE8F6EA20A661697

View file

@ -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)):