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
No known key found for this signature in database
GPG key ID: CE2B75697E69A548

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