From f5649db9d5e984ba7f376ccfd5b0a627f5c42402 Mon Sep 17 00:00:00 2001 From: josibake Date: Thu, 28 Jul 2022 16:19:56 +0200 Subject: refactor: add UNKNOWN OutputType add to enum, array and handle UNKNOWN in various case statements --- src/wallet/scriptpubkeyman.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/wallet/scriptpubkeyman.cpp') diff --git a/src/wallet/scriptpubkeyman.cpp b/src/wallet/scriptpubkeyman.cpp index 1682ce2eef..3cf289b1cd 100644 --- a/src/wallet/scriptpubkeyman.cpp +++ b/src/wallet/scriptpubkeyman.cpp @@ -1966,6 +1966,11 @@ bool DescriptorScriptPubKeyMan::SetupDescriptorGeneration(const CExtKey& master_ desc_prefix = "tr(" + xpub + "/86'"; break; } + case OutputType::UNKNOWN: { + // We should never have a DescriptorScriptPubKeyMan for an UNKNOWN OutputType, + // so if we get to this point something is wrong + assert(false); + } } // no default case, so the compiler can warn about missing cases assert(!desc_prefix.empty()); -- cgit v1.2.3