diff options
author | MarcoFalke <falke.marco@gmail.com> | 2019-11-25 15:30:01 -0500 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2019-11-25 15:27:50 -0500 |
commit | fad9fdbea5dfb19328282afda9588edc6f1d0ddf (patch) | |
tree | 8f8bf81a9a94e1016bc266b1ca20f4858e5140e4 /test | |
parent | fa94fc10c881e502e6c9a71f3b7719aa955900f9 (diff) |
test: Properly deserialize integers in little-endian
Diffstat (limited to 'test')
-rwxr-xr-x | test/functional/interface_rest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/interface_rest.py b/test/functional/interface_rest.py index a036dfc790..797fcc828a 100755 --- a/test/functional/interface_rest.py +++ b/test/functional/interface_rest.py @@ -151,7 +151,7 @@ class RESTTest (BitcoinTestFramework): bin_response = self.test_rest_request("/getutxos", http_method='POST', req_type=ReqType.BIN, body=bin_request, ret_type=RetType.BYTES) output = BytesIO(bin_response) - chain_height, = unpack("i", output.read(4)) + chain_height, = unpack("<i", output.read(4)) response_hash = output.read(32)[::-1].hex() assert_equal(bb_hash, response_hash) # check if getutxo's chaintip during calculation was fine |