wallet: Replace Assume with Assert where needed in coinselection #23762

pull MarcoFalke wants to merge 1 commits into bitcoin:master from MarcoFalke:2112-refAssertCoinWallet changing 1 files +3 −4
  1. MarcoFalke commented at 1:48 PM on December 13, 2021: member

    Assume should only be used when a failed check is recoverable. The checks here don't recover and would run into UB, so use Assert instead.

  2. wallet: Replace Assume with Assert where needed in coinselection fa26c55644
  3. MarcoFalke added the label Refactoring on Dec 13, 2021
  4. MarcoFalke cross-referenced this on Dec 13, 2021 from issue wallet: Introduce SelectionResult for encapsulating a coin selection solution by achow101
  5. theStack approved
  6. theStack commented at 9:59 PM on December 13, 2021: contributor

    Code-review ACK fa26c5564429d3201f43850afaf1b4df2ed11ad9

  7. luke-jr approved
  8. luke-jr commented at 10:38 PM on December 13, 2021: member

    utACK

  9. fanquake merged this on Dec 14, 2021
  10. fanquake closed this on Dec 14, 2021

  11. MarcoFalke deleted the branch on Dec 14, 2021
  12. bitcoin locked this on Dec 14, 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-20 06:53 UTC