We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 526a87b commit 9a0b2a6Copy full SHA for 9a0b2a6
src/test/fuzz/hex.cpp
@@ -10,6 +10,7 @@
10
#include <uint256.h>
11
#include <univalue.h>
12
#include <util/strencodings.h>
13
+#include <util/transaction_identifier.h>
14
15
#include <cassert>
16
#include <cstdint>
@@ -27,7 +28,11 @@ FUZZ_TARGET(hex)
27
28
assert(ToLower(random_hex_string) == hex_data);
29
}
30
(void)IsHexNumber(random_hex_string);
- (void)uint256::FromHex(random_hex_string);
31
+ if (uint256::FromHex(random_hex_string)) {
32
+ assert(random_hex_string.length() == 64);
33
+ assert(Txid::FromHex(random_hex_string));
34
+ assert(Wtxid::FromHex(random_hex_string));
35
+ }
36
(void)uint256S(random_hex_string);
37
try {
38
(void)HexToPubKey(random_hex_string);
0 commit comments