Browse Source

Merge #8803: Ping regularly in p2p-segwit.py to keep connection alive

0637b02 Ping regularly in p2p-segwit.py to keep connection alive (Johnson Lau)
0.14
Wladimir J. van der Laan 8 years ago
parent
commit
6e54c85439
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 3
      qa/rpc-tests/p2p-segwit.py

3
qa/rpc-tests/p2p-segwit.py

@ -1392,6 +1392,9 @@ class SegWitTest(BitcoinTestFramework): @@ -1392,6 +1392,9 @@ class SegWitTest(BitcoinTestFramework):
block = self.build_next_block()
used_sighash_single_out_of_bounds = False
for i in range(NUM_TESTS):
# Ping regularly to keep the connection alive
if (not i % 100):
self.test_node.sync_with_ping()
# Choose random number of inputs to use.
num_inputs = random.randint(1, 10)
# Create a slight bias for producing more utxos

Loading…
Cancel
Save