Skip to content

Commit 4ad20a2

Browse files
committed
Merge bitcoin/bitcoin#27473: bugfix: Properly handle "unknown" Address Type
0d6383f Don't return OutputType::UNKNOWN in ParseOutputType (Pttn) Pull request description: Fixes bitcoin/bitcoin#27472 by also handling at the relevant places the case where ParseOutputType returns `OutputType::UNKNOWN`, and not just when it returns `std::nullopt`. ACKs for top commit: achow101: ACK 0d6383f MarcoFalke: lgtm ACK 0d6383f furszy: ACK bitcoin/bitcoin@0d6383f Tree-SHA512: 776793027b926283d3162e69fb9c8883c814b19bcce4574ccdf8e3140a1ec4ebc4aa8ccd1abae7ef3571f942d2e6c35305fd1244259540d90605106e01afc34c
2 parents e054b73 + 0d6383f commit 4ad20a2

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/outputtype.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ std::optional<OutputType> ParseOutputType(const std::string& type)
3232
return OutputType::BECH32;
3333
} else if (type == OUTPUT_TYPE_STRING_BECH32M) {
3434
return OutputType::BECH32M;
35-
} else if (type == OUTPUT_TYPE_STRING_UNKNOWN) {
36-
return OutputType::UNKNOWN;
3735
}
3836
return std::nullopt;
3937
}

0 commit comments

Comments
 (0)