test: add coverage for invalid parameters for `rescanblockchain` #25906

pull brunoerg wants to merge 1 commits into bitcoin:master from brunoerg:2022-08-add-test-rescanblockchain changing 1 files +7 −0
  1. brunoerg commented at 8:19 PM on August 22, 2022: contributor
  2. fanquake added the label Tests on Aug 22, 2022
  3. aureleoules commented at 10:20 AM on August 23, 2022: member

    ACK 32cd1441d7e178b14ff63154585eaf0f38104cae - i verified this case was not tested.

    Maybe outside the scope of this PR but this also seems to be untested. https://github.com/bitcoin/bitcoin/blob/2bd9aa5a44b88c866c4d98f8a7bf7154049cba31/src/wallet/rpc/transactions.cpp#L896-L899

  4. w0xlt approved
  5. brunoerg commented at 2:09 PM on August 23, 2022: contributor

    @aureleoules

    Maybe outside the scope of this PR but this also seems to be untested.

    Cool, I can work on it for other PR. Thanks

  6. in test/functional/wallet_transactiontime_rescan.py:161 in 32cd1441d7 outdated
     158 | @@ -158,5 +159,10 @@ def run_test(self):
     159 |                  assert_equal(tx['time'], cur_time + ten_days + ten_days + ten_days)
     160 |  
     161 |  
    


    kristapsk commented at 2:42 PM on August 23, 2022:

    Add some log message here? For example:

            self.log.info('Test handling of invalid parameters for rescanblockchain')
    

    brunoerg commented at 4:50 PM on August 23, 2022:

    Make sense, done!

  7. brunoerg force-pushed on Aug 23, 2022
  8. brunoerg commented at 4:50 PM on August 23, 2022: contributor

    Force pushed addressing @kristapsk's review.

  9. kristapsk approved
  10. kristapsk commented at 5:12 PM on August 23, 2022: contributor

    ACK bd47bb56681b0cc0b0c49e9b4e7f3d6e2ae5ad3e

  11. w0xlt approved
  12. w0xlt commented at 7:57 PM on August 23, 2022: contributor
  13. test: add coverage for invalid parameters for `rescanblockchain` d1a0004621
  14. brunoerg force-pushed on Aug 23, 2022
  15. brunoerg commented at 10:07 PM on August 23, 2022: contributor

    But there is a lint error in CI.

    Thanks, @w0xlt. It was fixed in last force-pushed.

  16. w0xlt approved
  17. w0xlt commented at 3:24 AM on August 24, 2022: contributor
  18. MarcoFalke merged this on Aug 24, 2022
  19. MarcoFalke closed this on Aug 24, 2022

  20. sidhujag referenced this in commit 67425f4561 on Aug 24, 2022
  21. bitcoin locked this on Aug 24, 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