diff options
| author | MarcoFalke <[email protected]> | 2019-11-25 15:30:01 -0500 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2019-11-25 15:27:50 -0500 |
| commit | fad9fdbea5dfb19328282afda9588edc6f1d0ddf (patch) | |
| tree | 8f8bf81a9a94e1016bc266b1ca20f4858e5140e4 | |
| parent | ci: Run functional tests on s390x (diff) | |
| download | discoin-fad9fdbea5dfb19328282afda9588edc6f1d0ddf.tar.xz discoin-fad9fdbea5dfb19328282afda9588edc6f1d0ddf.zip | |
test: Properly deserialize integers in little-endian
| -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 a036dfc79..797fcc828 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 |