Replace atoi64 with ParseInt64 #11897

issue promag opened this issue on December 14, 2017
  1. promag commented at 10:25 AM on December 14, 2017: member

    When converting user input the result is zero if the conversion fails. There should be a better error handling, especially in argument/config handling.

    cc @laanwj

  2. MarcoFalke commented at 6:20 PM on December 14, 2017: member

    This is already mentioned in the developer notes: https://github.com/bitcoin/bitcoin/blob/master/doc/developer-notes.md#strings-and-formatting

    Please submit a pull request if the current code is not conformant.

  3. MarcoFalke closed this on Dec 14, 2017

  4. promag commented at 6:25 PM on December 14, 2017: member

    Such PR could be a complex refactor. One usage to fix is GetArg(..., uint64_t).

  5. MarcoFalke commented at 6:31 PM on December 14, 2017: member

    That, imo, should be solved by checking the command line args on init. C.f. #11819

  6. MarcoFalke locked this on Sep 8, 2021
Contributors

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-22 00:15 UTC

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