mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-05 14:06:27 -05:00
test: Properly deserialize integers in little-endian
This commit is contained in:
parent
fa94fc10c8
commit
fad9fdbea5
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue