test: refactor functional tests to use restart_node

This commit is contained in:
Christopher Coverdale
2020-06-21 23:32:32 +01:00
parent 8ef15e8a86
commit 20b6e95944
13 changed files with 25 additions and 48 deletions

View File

@ -1898,8 +1898,7 @@ class SegWitTest(BitcoinTestFramework):
def test_upgrade_after_activation(self):
"""Test the behavior of starting up a segwit-aware node after the softfork has activated."""
self.stop_node(2)
self.start_node(2, extra_args=["-segwitheight={}".format(SEGWIT_HEIGHT)])
self.restart_node(2, extra_args=["-segwitheight={}".format(SEGWIT_HEIGHT)])
connect_nodes(self.nodes[0], 2)
# We reconnect more than 100 blocks, give it plenty of time