diff --git a/test/functional/interface_rest.py b/test/functional/interface_rest.py index 6f585f6825a..4f39dcd0245 100755 --- a/test/functional/interface_rest.py +++ b/test/functional/interface_rest.py @@ -3,25 +3,26 @@ # 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 test_framework.test_framework import BitcoinTestFramework -from test_framework.util import * -from struct import * +from decimal import Decimal from io import BytesIO +import json from codecs import encode +from struct import pack, unpack import http.client import urllib.parse -def deser_uint256(f): - r = 0 - for i in range(8): - t = unpack(b"