diff options
| author | MarcoFalke <[email protected]> | 2020-06-27 11:05:03 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2020-07-01 18:03:12 -0400 |
| commit | fa927ff884ae373c676deed63180a8d238872cdc (patch) | |
| tree | 2531154ff67dd4190feaf2adbe10d4e7e64c7cd1 /src/wallet/scriptpubkeyman.cpp | |
| parent | Remove confusing OutputType::CHANGE_AUTO (diff) | |
| download | discoin-fa927ff884ae373c676deed63180a8d238872cdc.tar.xz discoin-fa927ff884ae373c676deed63180a8d238872cdc.zip | |
Enable Wswitch for OutputType
Diffstat (limited to 'src/wallet/scriptpubkeyman.cpp')
| -rw-r--r-- | src/wallet/scriptpubkeyman.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/scriptpubkeyman.cpp b/src/wallet/scriptpubkeyman.cpp index d57f99a20..17da781e3 100644 --- a/src/wallet/scriptpubkeyman.cpp +++ b/src/wallet/scriptpubkeyman.cpp @@ -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()) { |