We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent faa4838 commit fa6e50dCopy full SHA for fa6e50d
src/test/fuzz/rpc.cpp
@@ -380,9 +380,7 @@ FUZZ_TARGET(rpc, .init = initialize_rpc)
380
rpc_testing_setup->CallRPC(rpc_command, arguments);
381
} catch (const UniValue& json_rpc_error) {
382
const std::string error_msg{json_rpc_error.find_value("message").get_str()};
383
- // Once c++20 is allowed, starts_with can be used.
384
- // if (error_msg.starts_with("Internal bug detected")) {
385
- if (0 == error_msg.rfind("Internal bug detected", 0)) {
+ if (error_msg.starts_with("Internal bug detected")) {
386
// Only allow the intentional internal bug
387
assert(error_msg.find("trigger_internal_bug") != std::string::npos);
388
}
0 commit comments