Skip to content

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

Merged
fanquake merged 1 commit into
bitcoin:masterfrom
maflcko:2112-refAssertCoinWallet
Dec 14, 2021
Merged

wallet: Replace Assume with Assert where needed in coinselection#23762
fanquake merged 1 commit into
bitcoin:masterfrom
maflcko:2112-refAssertCoinWallet

Conversation

@maflcko

@maflcko maflcko commented Dec 13, 2021

Copy link
Copy Markdown
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.

@theStack theStack left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code-review ACK fa26c55

@luke-jr luke-jr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@fanquake
fanquake merged commit ab879d9 into bitcoin:master Dec 14, 2021
@maflcko
maflcko deleted the 2112-refAssertCoinWallet branch December 14, 2021 08:26
@bitcoin bitcoin locked and limited conversation to collaborators Dec 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants