mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-20 14:05:23 +01:00
Merge bitcoin/bitcoin#27473: bugfix: Properly handle "unknown" Address Type
0d6383fda0
Don't return OutputType::UNKNOWN in ParseOutputType (Pttn) Pull request description: Fixes https://github.com/bitcoin/bitcoin/issues/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: ACK0d6383fda0
MarcoFalke: lgtm ACK0d6383fda0
furszy: ACK0d6383fda0
Tree-SHA512: 776793027b926283d3162e69fb9c8883c814b19bcce4574ccdf8e3140a1ec4ebc4aa8ccd1abae7ef3571f942d2e6c35305fd1244259540d90605106e01afc34c
This commit is contained in:
commit
4ad20a2258
1 changed files with 0 additions and 2 deletions
|
@ -32,8 +32,6 @@ std::optional<OutputType> ParseOutputType(const std::string& type)
|
|||
return OutputType::BECH32;
|
||||
} else if (type == OUTPUT_TYPE_STRING_BECH32M) {
|
||||
return OutputType::BECH32M;
|
||||
} else if (type == OUTPUT_TYPE_STRING_UNKNOWN) {
|
||||
return OutputType::UNKNOWN;
|
||||
}
|
||||
return std::nullopt;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue