[RPC] Remove unreachable help conditions in rpcwallet.cpp #12727

pull lutangar wants to merge 1 commits into bitcoin:master from LePetitBloc:unreachable-help-condition changing 1 files +0 −8
  1. lutangar commented at 4:09 PM on March 19, 2018: contributor

    These conditions on request.fHelp, which appears in the body of the following functions are never reached:

    • walletpassphrase
    • walletpassphrasechange
    • encryptwallet
    ...
        if (request.fHelp || request.params.size() != 0) {
            throw std::runtime_error("");
        }
    ...
        if (request.fHelp)
            return true;
    ...
    

    The first condition would throw if request.fHelp evaluates to true.

  2. Remove unreachable help conditions e5468a19d1
  3. fanquake added the label RPC/REST/ZMQ on Mar 19, 2018
  4. MarcoFalke renamed this:
    [RPC][Trivial] Remove unreachable help conditions in `rpcwallet.cpp`
    [RPC] Remove unreachable help conditions in rpcwallet.cpp
    on Mar 19, 2018
  5. MarcoFalke added the label Refactoring on Mar 19, 2018
  6. MarcoFalke commented at 4:19 PM on March 19, 2018: member

    utACK e5468a19d14a32715097435df778d43efcceaa11. The code as-is wouldn't make sense anyway

  7. Empact commented at 5:40 PM on March 19, 2018: member

    utACK e5468a1

  8. ken2812221 commented at 6:20 PM on March 19, 2018: contributor

    utACK e5468a1

  9. practicalswift commented at 6:40 PM on March 19, 2018: contributor

    Nice first-time contribution! 👍

    utACK e5468a1

  10. jnewbery commented at 8:47 PM on March 19, 2018: member

    utACK e5468a19d14a32715097435df778d43efcceaa11

  11. MarcoFalke merged this on Mar 19, 2018
  12. MarcoFalke closed this on Mar 19, 2018

  13. MarcoFalke referenced this in commit 8ee5c7b747 on Mar 19, 2018
  14. PastaPastaPasta referenced this in commit 75739e4717 on Jun 9, 2020
  15. PastaPastaPasta referenced this in commit 382e625020 on Jun 9, 2020
  16. PastaPastaPasta referenced this in commit 4375e2adca on Jun 10, 2020
  17. PastaPastaPasta referenced this in commit b0a30c4a92 on Jun 11, 2020
  18. PastaPastaPasta referenced this in commit ff4ea5b77b on Jun 11, 2020
  19. PastaPastaPasta referenced this in commit 2799bdd830 on Jun 11, 2020
  20. PastaPastaPasta referenced this in commit 1d911cbe6a on Jun 12, 2020
  21. deadalnix referenced this in commit ebfbffa98b on Jun 15, 2020
  22. gades referenced this in commit adee6a5193 on Jun 30, 2021
  23. 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