test: assert rpc error for addnode v2transport not enabled #29460

pull kevkevinpal wants to merge 1 commits into bitcoin:master from kevkevinpal:v2TransportRequestNotEnabledTest changing 1 files +6 −0
  1. kevkevinpal commented at 4:10 AM on February 21, 2024: contributor

    Added coverage for the addnode rpc when v2transport is not enabled, but is set as true when calling addnode rpc.

    I ran the following to check if this rpc error message was covered in the functional tests. grep -nr "v2transport requested but not enabled" ./test/functional --binary-files=without-match

    Adds test coverage to this line. https://github.com/bitcoin/bitcoin/blob/master/src/rpc/net.cpp#L339

  2. test: assert rpc error for addnode v2transport not enabled
    Added coverage for the addnode rpc when v2transport is not enabled but
    is set as true when calling addnode rpc
    345169a752
  3. DrahtBot commented at 4:10 AM on February 21, 2024: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--006a51241073e994b41acfe9ec718e94-->

    Code Coverage

    For detailed information about the code coverage, see the test coverage report.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK maflcko, brunoerg, BrandonOdiwuor, theStack

    If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

  4. DrahtBot added the label Tests on Feb 21, 2024
  5. in test/functional/p2p_v2_transport.py:15 in 345169a752
      11 | @@ -12,6 +12,7 @@
      12 |  from test_framework.util import (
      13 |      assert_equal,
      14 |      p2p_port,
      15 | +    assert_raises_rpc_error
    


    maflcko commented at 8:18 AM on February 21, 2024:
        assert_raises_rpc_error,
    

    nit (only if you re-touch for other reasons): Please always add the trailing comma, to avoid having to touch this line again in the future when a new item is added to the list. Also, could sort.

  6. maflcko approved
  7. maflcko commented at 8:20 AM on February 21, 2024: member

    lgtm ACK 345169a7523f00209985da88e0171e8687589c25

    Checked coverage per https://corecheck.dev/bitcoin/bitcoin/pulls/29460

  8. brunoerg approved
  9. brunoerg commented at 10:47 AM on February 21, 2024: contributor

    utACK 345169a7523f00209985da88e0171e8687589c25

  10. BrandonOdiwuor approved
  11. BrandonOdiwuor commented at 2:05 PM on February 21, 2024: contributor

    Code Review ACK 345169a7523f00209985da88e0171e8687589c25

  12. theStack approved
  13. theStack commented at 3:34 PM on February 21, 2024: contributor

    Code-review ACK 345169a7523f00209985da88e0171e8687589c25

  14. fanquake merged this on Feb 21, 2024
  15. fanquake closed this on Feb 21, 2024

  16. kwvg referenced this in commit 5e4e74d416 on Oct 15, 2024
  17. kwvg referenced this in commit 443e51252b on Oct 23, 2024
  18. kwvg referenced this in commit ec037d6031 on Oct 23, 2024
  19. kwvg referenced this in commit 708329d2fb on Oct 23, 2024
  20. PastaPastaPasta referenced this in commit d32bfc545d on Oct 24, 2024
  21. kwvg referenced this in commit e47bbf89de on Oct 24, 2024
  22. kwvg referenced this in commit bd2fe6103d on Oct 24, 2024
  23. PastaPastaPasta referenced this in commit 2e162da06f on Oct 24, 2024
  24. bitcoin locked this on Feb 20, 2025

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-17 06:13 UTC

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