mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 06:52:36 +01:00
test: Fix intermittent p2p_segwit issue
This commit is contained in:
parent
ae32e5ce3d
commit
fa8614aea9
1 changed files with 2 additions and 2 deletions
|
@ -1896,12 +1896,12 @@ class SegWitTest(BitcoinTestFramework):
|
||||||
def test_upgrade_after_activation(self):
|
def test_upgrade_after_activation(self):
|
||||||
"""Test the behavior of starting up a segwit-aware node after the softfork has activated."""
|
"""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.stop_node(2)
|
||||||
self.start_node(2, extra_args=["-segwitheight={}".format(SEGWIT_HEIGHT)])
|
self.start_node(2, extra_args=["-segwitheight={}".format(SEGWIT_HEIGHT)])
|
||||||
connect_nodes(self.nodes[0], 2)
|
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.
|
# Make sure that this peer thinks segwit has activated.
|
||||||
assert softfork_active(self.nodes[2], 'segwit')
|
assert softfork_active(self.nodes[2], 'segwit')
|
||||||
|
|
Loading…
Add table
Reference in a new issue