diff options
author | Pttn <28868425+Pttn@users.noreply.github.com> | 2023-04-16 23:47:15 +0200 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2023-04-17 15:09:27 +0100 |
commit | 0bac52d5cfaf1a3beb99b780ed7446e2faba877f (patch) | |
tree | ca50a3eadf07ad1103263631bde9e9a2c0f6f5af /src | |
parent | 9e05de1d7081decf081d2d7811ae99564da53d87 (diff) |
Don't return OutputType::UNKNOWN in ParseOutputType
Fixes https://github.com/bitcoin/bitcoin/issues/27472
Signed-off-by: Pttn <28868425+Pttn@users.noreply.github.com>
Github-Pull: #27473
Rebased-From: 0d6383fda04a99726654945a737bbb1369e0e44a
Diffstat (limited to 'src')
-rw-r--r-- | src/outputtype.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/outputtype.cpp b/src/outputtype.cpp index 9ab2902256..e95ec7f4d3 100644 --- a/src/outputtype.cpp +++ b/src/outputtype.cpp @@ -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; } |