aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.cpp
diff options
context:
space:
mode:
authorjosibake <josibake@protonmail.com>2022-07-28 16:19:56 +0200
committerjosibake <josibake@protonmail.com>2022-08-10 10:17:54 +0200
commitf5649db9d5e984ba7f376ccfd5b0a627f5c42402 (patch)
treeb0f739ad36b908a29744bdc642972ff97a96daac /src/wallet/wallet.cpp
parentac59112a6a093e641ce2803260dd9de97b1cd961 (diff)
downloadbitcoin-f5649db9d5e984ba7f376ccfd5b0a627f5c42402.tar.xz
refactor: add UNKNOWN OutputType
add to enum, array and handle UNKNOWN in various case statements
Diffstat (limited to 'src/wallet/wallet.cpp')
-rw-r--r--src/wallet/wallet.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp
index 0a2997b3f1..b01c03eb53 100644
--- a/src/wallet/wallet.cpp
+++ b/src/wallet/wallet.cpp
@@ -3421,6 +3421,7 @@ void CWallet::SetupDescriptorScriptPubKeyMans()
for (bool internal : {false, true}) {
for (OutputType t : OUTPUT_TYPES) {
+ if (t == OutputType::UNKNOWN) continue;
auto spk_manager = std::unique_ptr<DescriptorScriptPubKeyMan>(new DescriptorScriptPubKeyMan(*this));
if (IsCrypted()) {
if (IsLocked()) {