#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin Core developers # Copyright (c) 2016-2022 The Zcash developers # Distributed under the MIT software license, see the accompanying # file COPYING or https://www.opensource.org/licenses/mit-license.php . # # Test REST interface # from test_framework.test_framework import BitcoinTestFramework from test_framework.util import assert_equal, assert_greater_than, \ hex_str_to_bytes, start_nodes, connect_nodes_bi import struct import json from io import BytesIO from codecs import encode from decimal import Decimal import http.client import urllib.parse def deser_uint256(f): r = 0 for i in range(8): t = struct.unpack(b"