[tests] Fix p2p_sendheaders race #13522

pull jnewbery wants to merge 1 commits into bitcoin:master from jnewbery:p2p_sendheaders_race changing 1 files +2 −0
  1. jnewbery commented at 3:59 PM on June 22, 2018: member

    p2p_sendheaders has a race in part 1.3.

    part 1.2 sends a block to the node over the 'test_node' connection, but doesn't wait for an inv to be received on the 'inv_node' connection. If we get to part 1.3 before that inv has been received, then the subsequent call to check_last_inv_announcement could fail.

  2. [tests] Fix p2p_sendheaders race
    p2p_sendheaders has a race in part 1.3.
    
    part 1.2 sends a block to the node over the 'test_node' connection, but
    doesn't wait for an inv to be received on the 'inv_node' connection. If
    we get to part 1.3 before that inv has been received, then the
    subsequent call to check_last_inv_announcement could fail.
    75848bcf40
  3. jnewbery cross-referenced this on Jun 22, 2018 from issue [qa] mininode: Expose connection state through is_connected by MarcoFalke
  4. fanquake added the label Tests on Jun 22, 2018
  5. MarcoFalke commented at 4:44 PM on June 22, 2018: member

    utACK 75848bcf401a23672aaec1d8be2738443946808c

  6. fanquake commented at 8:35 AM on July 1, 2018: member

    utACK 75848bc

  7. MarcoFalke merged this on Jul 1, 2018
  8. MarcoFalke closed this on Jul 1, 2018

  9. MarcoFalke referenced this in commit 686e97a0c7 on Jul 1, 2018
  10. Bushstar cross-referenced this on Jul 2, 2018 from issue commits from bitcoin/master by Bushstar
  11. jnewbery deleted the branch on Jul 2, 2018
  12. dsaveliev cross-referenced this on Mar 10, 2019 from issue Fix p2p_sendheaders race by dsaveliev
  13. scravy referenced this in commit ea638d67f7 on Mar 11, 2019
  14. codablock referenced this in commit af97ea2242 on Apr 18, 2020
  15. codablock cross-referenced this on Apr 18, 2020 from issue Backport #13522: [tests] Fix p2p_sendheaders race by codablock
  16. UdjinM6 referenced this in commit 08477899b4 on Apr 19, 2020
  17. ckti referenced this in commit a4c7c851a8 on Mar 28, 2021
  18. bitcoin locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-20 06:55 UTC