mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-05 14:06:27 -05:00
Merge bitcoin/bitcoin#26954: test: Avoid rpc timeout in p2p_headers_sync_with_minchainwork
fa952fad2f
test: Avoid rpc timeout in p2p_headers_sync_with_minchainwork (MarcoFalke) Pull request description: When running a lot of tests in parallel, I get `JSONRPCException: 'generatetoaddress' RPC took longer than 30.000000 seconds.` The general recommendation, if running into timeouts, is to increase the `--timeout-factor`. However, I think that the default timeout values should be suitable to run the tests out of the box on reasonable hardware. ACKs for top commit: fanquake: ACKfa952fad2f
Tree-SHA512: b7eeda54f8db900f077417c0431f659c67e686e2fc078f8c713e37ed75b8bc862814ce20e8400741638e35e224d7284ad16172bf5f82168f803376d0c9ec4524
This commit is contained in:
commit
75e752f134
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue