mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-08 03:33:32 +01:00
846a138728func test: Expand tx download preference tests (Greg Sanders) Pull request description: 1. Check that outbound nodes are treated the same as whitelisted connections for the purposes of `getdata` delays 2. Add test case that demonstrates download retries are preferentially given to outbound (preferred) connections even when multiple announcements are considered ready. `NUM_INBOUND` is a magic number large enough that it should fail over 90% of the time if the underlying outbound->preferred->PriorityComputer logic was broken. Bumping this to 100 peers cost another 14 seconds locally for the sub-test, so I made it pretty small. ACKs for top commit: i-am-yuvi: tACK846a138728good catch maflcko: ACK846a138728🍕 marcofleon: lgtm ACK846a138728Tree-SHA512: 337aa4dc33b5c0abeb4fe7e4cd5e389f7f53ae25dd991ba26615c16999872542391993020122fd255af4c7163f76c1d1feb2f2d6114f12a364c0360d4d52b8c3
19 KiB
Executable File
19 KiB
Executable File