Skip to content

Commit fad9fdb

Browse files
author
MarcoFalke
committed
test: Properly deserialize integers in little-endian
1 parent fa94fc1 commit fad9fdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/functional/interface_rest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def run_test(self):
151151

152152
bin_response = self.test_rest_request("/getutxos", http_method='POST', req_type=ReqType.BIN, body=bin_request, ret_type=RetType.BYTES)
153153
output = BytesIO(bin_response)
154-
chain_height, = unpack("i", output.read(4))
154+
chain_height, = unpack("<i", output.read(4))
155155
response_hash = output.read(32)[::-1].hex()
156156

157157
assert_equal(bb_hash, response_hash) # check if getutxo's chaintip during calculation was fine

0 commit comments

Comments
 (0)