Regression introduced today with p2p_filter.py? #18711

issue jonatack opened this issue on April 20, 2020
  1. jonatack commented at 4:58 PM on April 20, 2020: member

    in #18544 it seems:

    TestFramework (INFO): Check that sending "filteradd" if no filter is set is treated as misbehavior (+100)
    TestFramework (ERROR): Assertion failed
    Traceback (most recent call last):
      File "/home/travis/build/jonatack/bitcoin/build/bitcoin-s390x-linux-gnu/test/functional/test_framework/test_framework.py", line 112, in main
        self.run_test()
      File "/home/travis/build/jonatack/bitcoin/build/bitcoin-s390x-linux-gnu/test/functional/p2p_filter.py", line 120, in run_test
        assert_equal(self.nodes[0].getpeerinfo()[0]['banscore'], 0)
      File "/home/travis/build/jonatack/bitcoin/build/bitcoin-s390x-linux-gnu/test/functional/test_framework/util.py", line 46, in assert_equal
        raise AssertionError("not(%s)" % " == ".join(str(arg) for arg in (thing1, thing2) + args))
    AssertionError: not(100 == 0)
    
  2. jonatack added the label Bug on Apr 20, 2020
  3. jonatack commented at 5:00 PM on April 20, 2020: member

    Seeing this in the travis ci builds; pinging @theStack.

  4. jonatack commented at 5:02 PM on April 20, 2020: member
  5. theStack commented at 5:15 PM on April 20, 2020: member

    Yes, I can confirm that it fails on master -- that was apparently introduced through merging of #18544. The problem is that the "misbehaviour" check in #18544 uses the method of checking banscore via getpeerinfo() and assumes a banscore of 0 near the end of the test: https://github.com/bitcoin/bitcoin/blob/56d2ff8a8fc52676a22163f804a9f1a5415b4b71/test/functional/p2p_filter.py#L120-L122 while another commit merged in-between introduced misbehaviour before, increasing the banscore: https://github.com/bitcoin/bitcoin/blob/56d2ff8a8fc52676a22163f804a9f1a5415b4b71/test/functional/p2p_filter.py#L68-L70

    PR #18672 includes a fix for the problem, by simply also using assert_debug_log for detecting misbehaviour.

  6. brakmic commented at 10:07 AM on April 21, 2020: contributor

    Same problem with my PR: https://travis-ci.org/github/bitcoin/bitcoin/builds/677464990

    Thanks for fixing it, @theStack

  7. MarcoFalke closed this on Apr 21, 2020

  8. sidhujag referenced this in commit f398e24e39 on Apr 23, 2020
  9. DrahtBot locked this on Feb 15, 2022
  10. vijaydasmp referenced this in commit a2fb3bed58 on May 6, 2023

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-14 21:14 UTC

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