Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc-cmdline.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 command line functions specific to ABC functionality. | Exercise the command line functions specific to ABC functionality. | ||||
Currently: | Currently: | ||||
-excessiveblocksize=<blocksize_in_bytes> | -excessiveblocksize=<blocksize_in_bytes> | ||||
""" | """ | ||||
import re | import re | ||||
from test_framework.test_framework import BitcoinTestFramework | from test_framework.test_framework import BitcoinTestFramework | ||||
from test_framework.util import assert_equal | from test_framework.util import assert_equal | ||||
from test_framework.cdefs import LEGACY_MAX_BLOCK_SIZE, DEFAULT_MAX_BLOCK_SIZE | from test_framework.cdefs import LEGACY_MAX_BLOCK_SIZE | ||||
MAX_GENERATED_BLOCK_SIZE_ERROR = ( | MAX_GENERATED_BLOCK_SIZE_ERROR = ( | ||||
'Max generated block size (blockmaxsize) cannot exceed the excessive block size (excessiveblocksize)') | 'Max generated block size (blockmaxsize) cannot exceed the excessive block size (excessiveblocksize)') | ||||
class ABC_CmdLine_Test (BitcoinTestFramework): | class ABC_CmdLine_Test (BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |