It's better practice to use Assume for non-critical assumptions made in the code. This is especially relevant for P2P-exposed functionality, which I don't believe is the case for miniscript, but still, use Assumes except in places where a crash or UB will be inevitable on a failed assert anyway.
miniscript: convert non-critical asserts to Assumes #28678
pull sipa wants to merge 2 commits into bitcoin:master from sipa:202310_miniscript_assume changing 2 files +82 −74-
sipa commented at 10:00 PM on October 18, 2023: member
-
miniscript: move satisfaction sanity check to its own function 88f8e44683
-
miniscript: convert non-critical asserts to Assumes 12ad92c882
-
DrahtBot commented at 10:00 PM on October 18, 2023: contributor
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--006a51241073e994b41acfe9ec718e94-->
Code Coverage & Benchmarks
For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/28678.
<!--021abf342d371248e50ceaed478a90ca-->
Reviews
See the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
<!--174a7506f384e20aa4161008e828411d-->
Conflicts
Reviewers, this pull request conflicts with the following ones:
- #31713 (script refactor: Remove superfluous unique_ptr-indirection (#30866 follow-up) by hodlinator)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
- DrahtBot added the label Descriptors on Oct 18, 2023
- fanquake requested review from darosior on Oct 18, 2023
-
darosior commented at 6:55 AM on October 19, 2023: member
Those checks can be reached through the RPC interface or the wallet. In the unlikely scenario they are reached in a release build it would be better if they raise an exception instead of continuing silently. For instance if the type of the miniscript descriptor you imported was miscomputed for some reason you probably don't want to move forward and receive funds on it. Therefore i think it's better to use
CHECK_NONFATAL? - DrahtBot added the label CI failed on Jan 17, 2024
-
maflcko commented at 5:57 PM on February 22, 2024: member
Are you still working on this?
- DrahtBot marked this as a draft on Apr 18, 2024
-
DrahtBot commented at 7:10 AM on April 18, 2024: contributor
Converted to draft due to inactivity
-
DrahtBot commented at 12:43 AM on July 17, 2024: contributor
<!--2e250dc3d92b2c9115b66051148d6e47-->
🤔 There hasn't been much activity lately and the CI seems to be failing.
If no one reviewed the current pull request by commit hash, a rebase can be considered. While the CI failure may be a false positive, the CI hasn't been running for some time, so there may be a real issue hiding as well. A rebase triggers the latest CI and makes sure that no silent merge conflicts have snuck in.
-
DrahtBot commented at 1:07 AM on October 15, 2024: contributor
<!--2e250dc3d92b2c9115b66051148d6e47-->
🤔 There hasn't been much activity lately and the CI seems to be failing.
If no one reviewed the current pull request by commit hash, a rebase can be considered. While the CI failure may be a false positive, the CI hasn't been running for some time, so there may be a real issue hiding as well. A rebase triggers the latest CI and makes sure that no silent merge conflicts have snuck in.
-
DrahtBot commented at 10:09 AM on January 13, 2025: contributor
<!--2e250dc3d92b2c9115b66051148d6e47-->
🤔 There hasn't been much activity lately and the CI seems to be failing.
If no one reviewed the current pull request by commit hash, a rebase can be considered. While the CI failure may be a false positive, the CI hasn't been running for some time, so there may be a real issue hiding as well. A rebase triggers the latest CI and makes sure that no silent merge conflicts have snuck in.
-
sipa commented at 3:36 PM on January 23, 2025: member
Closing and marking as up for grabs.
- sipa closed this on Jan 23, 2025
- sipa added the label Up for grabs on Jan 23, 2025
-
darosior commented at 3:38 PM on January 23, 2025: member
I'll open a PR on top of master which implements my suggestion.
- fanquake removed the label Up for grabs on Jan 23, 2025
- glozow referenced this in commit a4fd565191 on Apr 10, 2025
- bitcoin locked this on Jan 23, 2026