OutputType::UNKNOWN
, and not just when it returns std::nullopt
.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
See the guideline for information on the review process.
Type | Reviewers |
---|---|
ACK | achow101, MarcoFalke, furszy |
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
unknown
as an output type, I think it would make sense to just make ParseOutputType
to never return OutputType::UNKNOWN
instead of having every caller handle it specially.
Fixes https://github.com/bitcoin/bitcoin/issues/27472
Signed-off-by: Pttn <28868425+Pttn@users.noreply.github.com>
lgtm ACK 0d6383fda04a99726654945a737bbb1369e0e44a
In a follow-up, might be good to at least add a regression test, or even extend the fuzz tests, see #27472 (comment)
Reproduced the issue manually from #27472. Agree with above to add more test coverage if possible.
ACK https://github.com/bitcoin/bitcoin/commit/0d6383fda04a99726654945a737bbb1369e0e44a.