aboutsummaryrefslogtreecommitdiff
path: root/test/functional/p2p_segwit.py
diff options
context:
space:
mode:
authorChristopher Coverdale <chris.coverdale24@gmail.com>2020-06-21 23:32:32 +0100
committerChristopher Coverdale <chris.coverdale24@gmail.com>2020-06-22 12:58:14 +0100
commit20b6e959449d0c07639599b99ba917d2cac62493 (patch)
tree021837bfa0fa9ccc43a70181306bd6af8ce7f121 /test/functional/p2p_segwit.py
parent8ef15e8a86038225afef2487ca23abc10ca5dffa (diff)
downloadbitcoin-20b6e959449d0c07639599b99ba917d2cac62493.tar.xz
test: refactor functional tests to use restart_node
Diffstat (limited to 'test/functional/p2p_segwit.py')
-rwxr-xr-xtest/functional/p2p_segwit.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/functional/p2p_segwit.py b/test/functional/p2p_segwit.py
index 8803086213..25dd765442 100755
--- a/test/functional/p2p_segwit.py
+++ b/test/functional/p2p_segwit.py
@@ -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