Skip to content

Commit facafa9

Browse files
author
MarcoFalke
committed
test: Fix CPartialMerkleTree.nTransactions signedness
1 parent aa9231f commit facafa9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/functional/test_framework/messages.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ def __init__(self):
10631063
self.vBits = []
10641064

10651065
def deserialize(self, f):
1066-
self.nTransactions = int.from_bytes(f.read(4), "little", signed=True)
1066+
self.nTransactions = int.from_bytes(f.read(4), "little")
10671067
self.vHash = deser_uint256_vector(f)
10681068
vBytes = deser_string(f)
10691069
self.vBits = []
@@ -1072,7 +1072,7 @@ def deserialize(self, f):
10721072

10731073
def serialize(self):
10741074
r = b""
1075-
r += self.nTransactions.to_bytes(4, "little", signed=True)
1075+
r += self.nTransactions.to_bytes(4, "little")
10761076
r += ser_uint256_vector(self.vHash)
10771077
vBytesArray = bytearray([0x00] * ((len(self.vBits) + 7)//8))
10781078
for i in range(len(self.vBits)):

0 commit comments

Comments
 (0)