From 10eb3a9faa977371facacee937b2e6dc26f008e0 Mon Sep 17 00:00:00 2001 From: TheCharlatan Date: Fri, 21 Jul 2023 13:47:43 +0200 Subject: kernel: Split ParseSighashString This split is done in preparation for the next commit where the dependency on UniValue in the kernel library is removed. --- src/test/fuzz/parse_univalue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test/fuzz') diff --git a/src/test/fuzz/parse_univalue.cpp b/src/test/fuzz/parse_univalue.cpp index 6d33c1a8cc..ac3e393401 100644 --- a/src/test/fuzz/parse_univalue.cpp +++ b/src/test/fuzz/parse_univalue.cpp @@ -75,7 +75,7 @@ FUZZ_TARGET_INIT(parse_univalue, initialize_parse_univalue) } try { (void)ParseSighashString(univalue); - } catch (const std::runtime_error&) { + } catch (const UniValue&) { } try { (void)AmountFromValue(univalue); -- cgit v1.2.3 From 6960c81cbfa6208d4098353e53b313e13a21cb49 Mon Sep 17 00:00:00 2001 From: TheCharlatan Date: Fri, 21 Jul 2023 14:37:03 +0200 Subject: kernel: Remove Univalue from kernel library It is not required by any of the kernel components. A JSON library should not need to be part of a consensus library. --- src/test/fuzz/parse_univalue.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/test/fuzz') diff --git a/src/test/fuzz/parse_univalue.cpp b/src/test/fuzz/parse_univalue.cpp index ac3e393401..c96cd53f5c 100644 --- a/src/test/fuzz/parse_univalue.cpp +++ b/src/test/fuzz/parse_univalue.cpp @@ -3,7 +3,6 @@ // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include -#include #include #include #include @@ -57,12 +56,6 @@ FUZZ_TARGET_INIT(parse_univalue, initialize_parse_univalue) (void)ParseHexO(univalue, random_string); } catch (const UniValue&) { } - try { - (void)ParseHexUV(univalue, "A"); - (void)ParseHexUV(univalue, random_string); - } catch (const UniValue&) { - } catch (const std::runtime_error&) { - } try { (void)ParseHexV(univalue, "A"); } catch (const UniValue&) { -- cgit v1.2.3