#!/usr/bin/env python3 # Copyright (c) 2014 The Bitcoin Core 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, \ initialize_chain_clean, start_nodes, connect_nodes_bi import struct import binascii import json import io from codecs import encode from decimal import Decimal from http.client import HTTPConnection from urllib.parse import urlparse def deser_uint256(f): r = 0 for i in range(8): t = struct.unpack(b"