mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-11 21:20:39 +02:00
refactor: add UNKNOWN OutputType
add to enum, array and handle UNKNOWN in various case statements
This commit is contained in:
@@ -19,6 +19,7 @@ enum class OutputType {
|
||||
P2SH_SEGWIT,
|
||||
BECH32,
|
||||
BECH32M,
|
||||
UNKNOWN,
|
||||
};
|
||||
|
||||
static constexpr auto OUTPUT_TYPES = std::array{
|
||||
@@ -26,6 +27,7 @@ static constexpr auto OUTPUT_TYPES = std::array{
|
||||
OutputType::P2SH_SEGWIT,
|
||||
OutputType::BECH32,
|
||||
OutputType::BECH32M,
|
||||
OutputType::UNKNOWN,
|
||||
};
|
||||
|
||||
std::optional<OutputType> ParseOutputType(const std::string& str);
|
||||
|
||||
Reference in New Issue
Block a user