fuzz: Remove duplicate ALL_OUTPUT_TYPE array

This commit is contained in:
MarcoFalke 2020-12-31 08:51:57 +01:00
parent fafce49336
commit fa5b935840
No known key found for this signature in database
GPG Key ID: CE2B75697E69A548

View File

@ -34,12 +34,6 @@ constexpr FeeEstimateHorizon ALL_FEE_EST_HORIZON[] = {
FeeEstimateHorizon::MED_HALFLIFE,
FeeEstimateHorizon::LONG_HALFLIFE,
};
constexpr OutputType ALL_OUTPUT_TYPE[] = {
OutputType::LEGACY,
OutputType::P2SH_SEGWIT,
OutputType::BECH32,
};
}; // namespace
// The fuzzing kitchen sink: Fuzzing harness for functions that need to be
@ -56,7 +50,7 @@ FUZZ_TARGET(kitchen_sink)
(void)StringForFeeEstimateHorizon(fuzzed_data_provider.PickValueInArray(ALL_FEE_EST_HORIZON));
const OutputType output_type = fuzzed_data_provider.PickValueInArray(ALL_OUTPUT_TYPE);
const OutputType output_type = fuzzed_data_provider.PickValueInArray(OUTPUT_TYPES);
const std::string& output_type_string = FormatOutputType(output_type);
OutputType output_type_parsed;
const bool parsed = ParseOutputType(output_type_string, output_type_parsed);