Intermittent test failures in sendheaders.py #7246

issue laanwj opened this issue on December 22, 2015
  1. laanwj commented at 3:00 PM on December 22, 2015: member
    MiniNode: Connecting to Bitcoin Node IP # 127.0.0.1:11106
    MiniNode: Connecting to Bitcoin Node IP # 127.0.0.1:11106
    Part 1: headers don't start before sendheaders message...
    Part 1: success!
    Part 2: announce blocks with headers after sendheaders message...
    Part 2: success!
    Part 3: headers announcements can stop after large reorg, and resume after headers/inv from peer...
    Assertion failed: False != True
      File "/home/travis/build/bitcoin/bitcoin/bitcoin-i686-pc-linux-gnu/qa/rpc-tests/test_framework/test_framework.py", line 135, in main
        self.run_test()
      File "/home/travis/build/bitcoin/bitcoin/bitcoin-i686-pc-linux-gnu/qa/rpc-tests/sendheaders.py", line 426, in run_test
        assert_equal(test_node.check_last_announcement(headers=[tip]), True)
      File "/home/travis/build/bitcoin/bitcoin/bitcoin-i686-pc-linux-gnu/qa/rpc-tests/test_framework/util.py", line 394, in assert_equal
        raise AssertionError("%s != %s"%(str(thing1),str(thing2)))
    Stopping nodes
    Cleaning up
    Failed
    

    See e.g. https://travis-ci.org/bitcoin/bitcoin/jobs/98312801

  2. laanwj added the label Tests on Dec 22, 2015
  3. sdaftuar commented at 7:06 PM on December 22, 2015: member

    Oops, I think I see the bug, though I'm not able to test my guess or submit a fix right now.

    Before this block of code starting at line 423, I think we need to call clear_last_announcement on inv_node and test_node, or else there's a race condition.

                # New blocks should now be announced with header
                tip = self.mine_blocks(1)
                assert_equal(inv_node.check_last_announcement(inv=[tip]), True)
                assert_equal(test_node.check_last_announcement(headers=[tip]), True)
    
  4. laanwj closed this on Jan 9, 2016

  5. MarcoFalke 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-04-13 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me