From 0262536c34567743e527dad46912c9ba493252cd Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Fri, 4 Jun 2021 16:38:47 -0400 Subject: Add OutputType::BECH32M Bech32m addresses need their own OutputType We are not ready to create DescriptorScriptPubKeyMans which produce bech32m addresses. So don't allow generating them. --- src/outputtype.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/outputtype.h') diff --git a/src/outputtype.h b/src/outputtype.h index 88422e5824..8727d3f543 100644 --- a/src/outputtype.h +++ b/src/outputtype.h @@ -18,12 +18,14 @@ enum class OutputType { LEGACY, P2SH_SEGWIT, BECH32, + BECH32M, }; static constexpr auto OUTPUT_TYPES = std::array{ OutputType::LEGACY, OutputType::P2SH_SEGWIT, OutputType::BECH32, + OutputType::BECH32M, }; [[nodiscard]] bool ParseOutputType(const std::string& str, OutputType& output_type); -- cgit v1.2.3