Enable Wswitch for OutputType

This commit is contained in:
MarcoFalke
2020-06-27 11:05:03 -04:00
parent faddad71f6
commit fa927ff884
2 changed files with 8 additions and 8 deletions

View File

@@ -1900,8 +1900,8 @@ bool DescriptorScriptPubKeyMan::SetupDescriptorGeneration(const CExtKey& master_
desc_prefix = "wpkh(" + xpub + "/84'";
break;
}
default: assert(false);
}
} // no default case, so the compiler can warn about missing cases
assert(!desc_prefix.empty());
// Mainnet derives at 0', testnet and regtest derive at 1'
if (Params().IsTestChain()) {