From facafa90f7a1eee452f9baf8a1b65a2edac0982b Mon Sep 17 00:00:00 2001 From: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> Date: Thu, 1 Feb 2024 13:19:16 +0100 Subject: test: Fix CPartialMerkleTree.nTransactions signedness --- test/functional/test_framework/messages.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/functional') diff --git a/test/functional/test_framework/messages.py b/test/functional/test_framework/messages.py index 60641f66cf..1780678de1 100755 --- a/test/functional/test_framework/messages.py +++ b/test/functional/test_framework/messages.py @@ -1063,7 +1063,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 = [] @@ -1072,7 +1072,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)): -- cgit v1.2.3