mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Use -Wswitch for TxoutType where possible
This commit is contained in:
parent
fa59e0b5bd
commit
fa650ca7f1
4 changed files with 26 additions and 23 deletions
|
|
@ -934,9 +934,9 @@ static std::string RecurseImportData(const CScript& script, ImportData& import_d
|
|||
case TxoutType::NONSTANDARD:
|
||||
case TxoutType::WITNESS_UNKNOWN:
|
||||
case TxoutType::WITNESS_V1_TAPROOT:
|
||||
default:
|
||||
return "unrecognized script";
|
||||
}
|
||||
} // no default case, so the compiler can warn about missing cases
|
||||
CHECK_NONFATAL(false);
|
||||
}
|
||||
|
||||
static UniValue ProcessImportLegacy(ImportData& import_data, std::map<CKeyID, CPubKey>& pubkey_map, std::map<CKeyID, CKey>& privkey_map, std::set<CScript>& script_pub_keys, bool& have_solving_data, const UniValue& data, std::vector<CKeyID>& ordered_pubkeys)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue