Changeset View
Changeset View
Standalone View
Standalone View
test/functional/wallet_listsinceblock.py
#!/usr/bin/env python3 | #!/usr/bin/env python3 | ||||
# Copyright (c) 2017 The Bitcoin Core developers | # Copyright (c) 2017 The Bitcoin Core 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. | ||||
"""Test the listsincelast RPC.""" | """Test the listsincelast RPC.""" | ||||
from test_framework.test_framework import BitcoinTestFramework | from test_framework.test_framework import BitcoinTestFramework | ||||
from test_framework.util import assert_equal, assert_array_result, assert_raises_rpc_error | from test_framework.util import assert_equal, assert_array_result, assert_raises_rpc_error | ||||
class ListSinceBlockTest (BitcoinTestFramework): | class ListSinceBlockTest (BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
self.num_nodes = 4 | self.num_nodes = 4 | ||||
self.setup_clean_chain = True | self.setup_clean_chain = True | ||||
self.extra_args = [["-noparkdeepreorg", '-deprecatedrpc=accounts'], | self.extra_args = [["-noparkdeepreorg"], ["-noparkdeepreorg"], [], []] | ||||
["-noparkdeepreorg", '-deprecatedrpc=accounts'], | |||||
['-deprecatedrpc=accounts'], ['-deprecatedrpc=accounts']] | |||||
def run_test(self): | def run_test(self): | ||||
self.nodes[2].generate(101) | self.nodes[2].generate(101) | ||||
self.sync_all() | self.sync_all() | ||||
self.test_no_blockhash() | self.test_no_blockhash() | ||||
self.test_invalid_blockhash() | self.test_invalid_blockhash() | ||||
self.test_reorg() | self.test_reorg() | ||||
▲ Show 20 Lines • Show All 263 Lines • Show Last 20 Lines |