mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-17 18:40:09 +00:00
Ping regularly in p2p-segwit.py to keep connection alive
This pings regularly while building a big block in p2p-segwit.py, to prevent timeout
This commit is contained in:
parent
24f72e9f3f
commit
0637b02fce
@ -1392,6 +1392,9 @@ class SegWitTest(BitcoinTestFramework):
|
|||||||
block = self.build_next_block()
|
block = self.build_next_block()
|
||||||
used_sighash_single_out_of_bounds = False
|
used_sighash_single_out_of_bounds = False
|
||||||
for i in range(NUM_TESTS):
|
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.
|
# Choose random number of inputs to use.
|
||||||
num_inputs = random.randint(1, 10)
|
num_inputs = random.randint(1, 10)
|
||||||
# Create a slight bias for producing more utxos
|
# Create a slight bias for producing more utxos
|
||||||
|
Loading…
x
Reference in New Issue
Block a user