diff --git a/test/functional/interface_rest.py b/test/functional/interface_rest.py index 6aae98525a..e11660793a 100755 --- a/test/functional/interface_rest.py +++ b/test/functional/interface_rest.py @@ -1,430 +1,407 @@ #!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the REST API.""" from codecs import encode from decimal import Decimal import http.client from io import BytesIO import json from struct import pack, unpack import urllib.parse +from test_framework.messages import deser_uint256 from test_framework.test_framework import BitcoinTestFramework from test_framework.util import ( assert_equal, assert_greater_than, connect_nodes_bi, hex_str_to_bytes, ) -def deser_uint256(f): - r = 0 - for i in range(8): - t = unpack(b"