Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc-rpc.py
#!/usr/bin/env python3 | #!/usr/bin/env python3 | ||||
# Copyright (c) 2017 The Bitcoin developers | # Copyright (c) 2017 The Bitcoin developers | ||||
# Distributed under the MIT software license, see the accompanying | # Distributed under the MIT software license, see the accompanying | ||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | # file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
# Exercise the Bitcoin ABC RPC calls. | # Exercise the Bitcoin ABC RPC calls. | ||||
import re | import re | ||||
from test_framework.test_framework import BitcoinTestFramework | |||||
from test_framework.util import (assert_equal, assert_raises_rpc_error) | from test_framework.cdefs import ( | ||||
from test_framework.cdefs import (ONE_MEGABYTE, | DEFAULT_MAX_BLOCK_SIZE, | ||||
LEGACY_MAX_BLOCK_SIZE, | LEGACY_MAX_BLOCK_SIZE, | ||||
DEFAULT_MAX_BLOCK_SIZE) | ONE_MEGABYTE, | ||||
) | |||||
from test_framework.test_framework import BitcoinTestFramework | |||||
from test_framework.util import assert_equal, assert_raises_rpc_error | |||||
class ABC_RPC_Test (BitcoinTestFramework): | class ABC_RPC_Test (BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
self.num_nodes = 1 | self.num_nodes = 1 | ||||
self.tip = None | self.tip = None | ||||
self.setup_clean_chain = True | self.setup_clean_chain = True | ||||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |