aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2016-09-27 13:21:34 +0200
committerWladimir J. van der Laan <[email protected]>2016-09-27 13:22:02 +0200
commit6e54c85439b6ce8913841f384864bef03a138b95 (patch)
tree937e5c9e90f4a300967c7eb253aaec053b52a318
parentMerge #8805: Trivial: Grammar and capitalization (diff)
parentPing regularly in p2p-segwit.py to keep connection alive (diff)
downloaddiscoin-6e54c85439b6ce8913841f384864bef03a138b95.tar.xz
discoin-6e54c85439b6ce8913841f384864bef03a138b95.zip
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)
-rwxr-xr-xqa/rpc-tests/p2p-segwit.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/qa/rpc-tests/p2p-segwit.py b/qa/rpc-tests/p2p-segwit.py
index 22ec0ad8c..5c1eb21b1 100755
--- a/qa/rpc-tests/p2p-segwit.py
+++ b/qa/rpc-tests/p2p-segwit.py
@@ -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