Skip to content

Commit 15d6af6

Browse files
committed
Alias "blech32" to "bech32" for address creation
This is technically not 100% correct since if blinded addresses are turned off, it will create a normal address for "blech32". But it's the simplest thing to do.
1 parent e1bf441 commit 15d6af6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/outputtype.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
static const std::string OUTPUT_TYPE_STRING_LEGACY = "legacy";
1717
static const std::string OUTPUT_TYPE_STRING_P2SH_SEGWIT = "p2sh-segwit";
1818
static const std::string OUTPUT_TYPE_STRING_BECH32 = "bech32";
19+
static const std::string OUTPUT_TYPE_STRING_BLECH32 = "blech32";
1920

2021
bool ParseOutputType(const std::string& type, OutputType& output_type)
2122
{
@@ -25,7 +26,7 @@ bool ParseOutputType(const std::string& type, OutputType& output_type)
2526
} else if (type == OUTPUT_TYPE_STRING_P2SH_SEGWIT) {
2627
output_type = OutputType::P2SH_SEGWIT;
2728
return true;
28-
} else if (type == OUTPUT_TYPE_STRING_BECH32) {
29+
} else if (type == OUTPUT_TYPE_STRING_BECH32 || type == OUTPUT_TYPE_STRING_BLECH32) {
2930
output_type = OutputType::BECH32;
3031
return true;
3132
}

0 commit comments

Comments
 (0)