test: Avoid rpc timeout in p2p_headers_sync_with_minchainwork

This commit is contained in:
MarcoFalke
2023-01-23 16:55:29 +01:00
parent a8c1ea50c7
commit fa952fad2f

View File

@@ -27,6 +27,7 @@ NODE2_BLOCKS_REQUIRED = 2047
class RejectLowDifficultyHeadersTest(BitcoinTestFramework):
def set_test_params(self):
self.rpc_timeout *= 4 # To avoid timeout when generating BLOCKS_TO_MINE
self.setup_clean_chain = True
self.num_nodes = 4
# Node0 has no required chainwork; node1 requires 15 blocks on top of the genesis block; node2 requires 2047