Issue Details

Number
23062
Title
Int command line settings silently fail to be used in a bool context
Description
Command line args to set int values can't easily be used in a bool context. In fact, they will silently do the wrong thing. For example, setting `-checkaddrman` will silently *disable* the checks, instead of enabling them. Obviously reading the documentation would avoid those mishaps, but it still feels wrong to silently do the opposite thing the user asked for. Same for: `-mempoolexpiry`, `-par`, and pretty much any other int setting that can be mistaken as a bool setting.
URL
https://github.com/bitcoin/bitcoin/issue/23062
Closed by
Back to List