diff options
author | Christopher Coverdale <chris.coverdale24@gmail.com> | 2020-06-21 23:32:32 +0100 |
---|---|---|
committer | Christopher Coverdale <chris.coverdale24@gmail.com> | 2020-06-22 12:58:14 +0100 |
commit | 20b6e959449d0c07639599b99ba917d2cac62493 (patch) | |
tree | 021837bfa0fa9ccc43a70181306bd6af8ce7f121 /test/functional/wallet_hd.py | |
parent | 8ef15e8a86038225afef2487ca23abc10ca5dffa (diff) | |
download | bitcoin-20b6e959449d0c07639599b99ba917d2cac62493.tar.xz |
test: refactor functional tests to use restart_node
Diffstat (limited to 'test/functional/wallet_hd.py')
-rwxr-xr-x | test/functional/wallet_hd.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/functional/wallet_hd.py b/test/functional/wallet_hd.py index c441b75652..3c336623e2 100755 --- a/test/functional/wallet_hd.py +++ b/test/functional/wallet_hd.py @@ -103,8 +103,7 @@ class WalletHDTest(BitcoinTestFramework): self.sync_all() # Needs rescan - self.stop_node(1) - self.start_node(1, extra_args=self.extra_args[1] + ['-rescan']) + self.restart_node(1, extra_args=self.extra_args[1] + ['-rescan']) assert_equal(self.nodes[1].getbalance(), NUM_HD_ADDS + 1) # Try a RPC based rescan @@ -183,8 +182,7 @@ class WalletHDTest(BitcoinTestFramework): self.nodes[0].generate(10) # Restart node 1 with keypool of 3 and a different wallet self.nodes[1].createwallet(wallet_name='origin', blank=True) - self.stop_node(1) - self.start_node(1, extra_args=['-keypool=3', '-wallet=origin']) + self.restart_node(1, extra_args=['-keypool=3', '-wallet=origin']) connect_nodes(self.nodes[0], 1) # sethdseed restoring and seeing txs to addresses out of the keypool |