Skip to content

Commit 1d150d3

Browse files
authored
Merge pull request #119 from brunoerg/2025-03-embit-skip-fragments
embit: skip descriptors with unimplemented fragments
2 parents cd75f5c + 9afc169 commit 1d150d3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

modules/embit/module.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ namespace bitcoinfuzz
1616

1717
std::optional<bool> Embit::descriptor_parse(std::string str) const
1818
{
19+
// Skip these fragments since Embit hasn't implemented them
20+
const std::vector<std::string> fragments = {"combo(", "thresh(", "raw(", "rawtr("};
21+
for (const auto& fragment : fragments) {
22+
if (str.find(fragment) != std::string::npos) {
23+
return std::nullopt;
24+
}
25+
}
1926
return embit_descriptor_parse(str.c_str());
2027
}
2128
}

0 commit comments

Comments
 (0)