test: add coverage for invalid requests for `blockfilterheaders` (REST) #25045

pull brunoerg wants to merge 1 commits into bitcoin:master from brunoerg:2022-04-invalid-blockfilterheaders changing 1 files +7 −1
  1. brunoerg commented at 9:17 PM on April 30, 2022: member

    This PR adds test coverage for invalid requests (Invalid hash and Unknown filtertype) for /blockfilterheaders in REST functional test.

  2. brunoerg renamed this:
    test: add coverage for invalid requests for `blockfilterheaders`
    test: add coverage for invalid requests for `blockfilterheaders` (REST)
    on Apr 30, 2022
  3. fanquake added the label Tests on Apr 30, 2022
  4. jacobpfickes commented at 3:16 AM on May 2, 2022: contributor

    ACK f11b8216fe6ec79b23c603ac185095222d0e9ff5

    Pulled and verified additions. Great work

  5. jonatack commented at 2:50 PM on May 3, 2022: member

    Light ACK f11b8216fe6ec79b23c603ac185095222d0e9ff5, this builds on and is similar to predecessor commit bd52684508c

    Should the logging be updated? e.g.

    --- a/test/functional/interface_rest.py
    +++ b/test/functional/interface_rest.py
    @@ -219,7 +219,7 @@ class RESTTest (BitcoinTestFramework):
     
             self.generate(self.nodes[0], 1)  # generate block to not affect upcoming tests
     
    -        self.log.info("Test the /block, /blockhashbyheight and /headers URIs")
    +        self.log.info("Test the /block, /blockhashbyheight, /headers, and /blockfilterheaders URIs")
             bb_hash = self.nodes[0].getbestblockhash()
    
  6. brunoerg commented at 5:23 PM on May 3, 2022: member

    Should the logging be updated? @jonatack, yes! Not only because of this PR, but it should be updated anyway because in that range of code there are some tests involving /blockfilterheaders. Nice catch!

  7. test: add coverage for invalid requests for `blockfilterheaders` d1bfe5ebdb
  8. brunoerg force-pushed on May 3, 2022
  9. jonatack commented at 6:43 PM on May 3, 2022: member

    ACK d1bfe5ebdb3d40dd45f97c751c49ebe2c549c1bc

  10. vincenzopalazzo approved
  11. MarcoFalke merged this on May 4, 2022
  12. MarcoFalke closed this on May 4, 2022

  13. sidhujag referenced this in commit 8b5c47fda1 on May 4, 2022
  14. DrahtBot locked this on May 4, 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-05-02 03:13 UTC

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