diff options
author | josibake <josibake@protonmail.com> | 2022-07-28 16:19:56 +0200 |
---|---|---|
committer | josibake <josibake@protonmail.com> | 2022-08-10 10:17:54 +0200 |
commit | f5649db9d5e984ba7f376ccfd5b0a627f5c42402 (patch) | |
tree | b0f739ad36b908a29744bdc642972ff97a96daac /src/wallet/scriptpubkeyman.cpp | |
parent | ac59112a6a093e641ce2803260dd9de97b1cd961 (diff) | |
download | bitcoin-f5649db9d5e984ba7f376ccfd5b0a627f5c42402.tar.xz |
refactor: add UNKNOWN OutputType
add to enum, array and handle UNKNOWN in various case statements
Diffstat (limited to 'src/wallet/scriptpubkeyman.cpp')
-rw-r--r-- | src/wallet/scriptpubkeyman.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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()); |