diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-05-01 08:36:04 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-05-01 08:36:35 -0400 |
commit | fa8614aea9b8dc0f135a1221c7435014adb71c89 (patch) | |
tree | cd4f7f1141a944fc39fa4fb342ebab609dac894c /test/functional | |
parent | ae32e5ce3d268881cbf631de1903b2a414bb64e1 (diff) | |
download | bitcoin-fa8614aea9b8dc0f135a1221c7435014adb71c89.tar.xz |
test: Fix intermittent p2p_segwit issue
Diffstat (limited to 'test/functional')
-rwxr-xr-x | test/functional/p2p_segwit.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/p2p_segwit.py b/test/functional/p2p_segwit.py index dbdce6552a..6fb0fec32b 100755 --- a/test/functional/p2p_segwit.py +++ b/test/functional/p2p_segwit.py @@ -1896,12 +1896,12 @@ class SegWitTest(BitcoinTestFramework): def test_upgrade_after_activation(self): """Test the behavior of starting up a segwit-aware node after the softfork has activated.""" - # Restart with the new binary self.stop_node(2) self.start_node(2, extra_args=["-segwitheight={}".format(SEGWIT_HEIGHT)]) connect_nodes(self.nodes[0], 2) - self.sync_blocks() + # We reconnect more than 100 blocks, give it plenty of time + self.sync_blocks(timeout=240) # Make sure that this peer thinks segwit has activated. assert softfork_active(self.nodes[2], 'segwit') |