refactor: remove c-string interfaces for DecodeBase58{Check} #19739

pull theStack wants to merge 1 commits into bitcoin:master from theStack:20200811-util-remove-cstring-decodebase58 changing 2 files +2 −15
  1. theStack commented at 12:03 AM on August 17, 2020: contributor

    This micro-PR gets rid of base58 function interfaces that are redundant in terms of c-string / std::string variants; the c-string interface for DecodeBase58Check is completely unused outside the base58 module, while the c-string interface for DecodeBase58 is only used in unit tests, where an implicit conversion to std::string is not problematic.

  2. fanquake added the label Refactoring on Aug 17, 2020
  3. practicalswift commented at 11:06 AM on August 17, 2020: contributor

    Thanks for removing old cruft with potentially sharp edges! But please don't remove the NODISCARD annotation :)

    ACK 13e576171d815d024f211593523c4c8204789f4a modulo restoration of NODISCARD

  4. util: remove c-string interfaces for DecodeBase58{Check} d3e8adfada
  5. theStack force-pushed on Aug 17, 2020
  6. theStack commented at 11:18 AM on August 17, 2020: contributor

    @practicalswift: Thanks for reviewing! Good point, force-pushed with adding the NODISCARD annotations for the respective (now static) functions in the base 58 module.

  7. practicalswift commented at 2:41 PM on August 17, 2020: contributor

    ACK d3e8adfada889a3c9fba930086eda609509aca07 -- patch looks correct

  8. theStack cross-referenced this on Aug 17, 2020 from issue refactor: remove unused c-string variant of atoi64() by theStack
  9. laanwj referenced this in commit e9b3012654 on Aug 19, 2020
  10. sidhujag referenced this in commit 8a92011d67 on Aug 19, 2020
  11. laanwj commented at 2:50 PM on August 28, 2020: member

    Code review ACK d3e8adfada889a3c9fba930086eda609509aca07

  12. laanwj merged this on Aug 28, 2020
  13. laanwj closed this on Aug 28, 2020

  14. sidhujag referenced this in commit de0e6f081c on Aug 28, 2020
  15. theStack deleted the branch on Dec 1, 2020
  16. bitcoin locked this on Feb 15, 2022

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-19 06:53 UTC