|
2 | 2 | # Copyright (c) 2018 The Bitcoin developers |
3 | 3 | # Distributed under the MIT software license, see the accompanying |
4 | 4 | # file COPYING or http://www.opensource.org/licenses/mit-license.php. |
5 | | -"""Test the parckblock and unparkblock RPC calls.""" |
| 5 | +"""Test the parkblock and unparkblock RPC calls.""" |
6 | 6 |
|
7 | 7 | from test_framework.test_framework import BitcoinTestFramework |
8 | 8 | from test_framework.util import assert_equal |
|
11 | 11 | class ParkedChainTest(BitcoinTestFramework): |
12 | 12 | def set_test_params(self): |
13 | 13 | self.num_nodes = 2 |
14 | | - self.extra_args = [["-noparkdeepreorg", |
15 | | - "-noautomaticunparking", "-whitelist=noban@127.0.0.1"], ["-maxreorgdepth=-1"]] |
| 14 | + self.extra_args = [ |
| 15 | + [ |
| 16 | + "-noparkdeepreorg", |
| 17 | + "-noautomaticunparking", |
| 18 | + "-whitelist=noban@127.0.0.1", |
| 19 | + ], |
| 20 | + [ |
| 21 | + "-automaticunparking=1", |
| 22 | + "-maxreorgdepth=-1" |
| 23 | + ] |
| 24 | + ] |
16 | 25 |
|
17 | 26 | def skip_test_if_missing_module(self): |
18 | 27 | self.skip_if_no_wallet() |
@@ -216,7 +225,7 @@ def check_reorg_protection(depth, extra_blocks): |
216 | 225 | ) |
217 | 226 | wait_for_parked_block(node.getbestblockhash()) |
218 | 227 | # Restart the parking node without parkdeepreorg. |
219 | | - self.restart_node(1, ["-parkdeepreorg=0"]) |
| 228 | + self.restart_node(1, self.extra_args[1] + ["-parkdeepreorg=0"]) |
220 | 229 | parking_node = self.nodes[1] |
221 | 230 | self.connect_nodes(node.index, parking_node.index) |
222 | 231 | # The other chain should still be marked 'parked'. |
|
0 commit comments