mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-04 02:02:42 +02:00
Merge bitcoin/bitcoin#25699: scripted-diff: Replace NullUniValue with UniValue::VNULL
fa28d0f3c3scripted-diff: Replace NullUniValue with UniValue::VNULL (MacroFake)fa962103e8fuzz: refactor: Replace NullUniValue with UniValue{} (MacroFake) Pull request description: This refactor is needed to disable the (potentially expensive for large json) UniValue copy constructors. ACKs for top commit: fanquake: ACKfa28d0f3c3Tree-SHA512: 7d4204cce0a6fc4ecda96973de77d15b7e4c7caa3e0e890e1f5b9a4b9ace8b240b1f7565d6ab586e168a5fa1201b6c60a924868ef34d6abfbfd8ab7f0f99fbc7
This commit is contained in:
@@ -26,7 +26,7 @@ FUZZ_TARGET_INIT(parse_univalue, initialize_parse_univalue)
|
||||
return ParseNonRFCJSONValue(random_string);
|
||||
} catch (const std::runtime_error&) {
|
||||
valid = false;
|
||||
return NullUniValue;
|
||||
return UniValue{};
|
||||
}
|
||||
}();
|
||||
if (!valid) {
|
||||
|
||||
Reference in New Issue
Block a user