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 1be6f2d commit fa26303Copy full SHA for fa26303
src/test/fuzz/script.cpp
@@ -72,6 +72,13 @@ FUZZ_TARGET_INIT(script, initialize_script)
72
73
TxoutType which_type;
74
(void)IsStandard(script, which_type);
75
+ if (which_type == TxoutType::NULL_DATA) {
76
+ assert(script.IsUnspendable());
77
+ }
78
+ if (script.IsUnspendable()) {
79
+ assert(which_type == TxoutType::NULL_DATA ||
80
+ which_type == TxoutType::NONSTANDARD);
81
82
83
(void)RecursiveDynamicUsage(script);
84
@@ -82,7 +89,6 @@ FUZZ_TARGET_INIT(script, initialize_script)
89
(void)script.IsPayToScriptHash();
90
(void)script.IsPayToWitnessScriptHash();
91
(void)script.IsPushOnly();
85
- (void)script.IsUnspendable();
86
92
(void)script.GetSigOpCount(/* fAccurate= */ false);
87
93
88
94
(void)FormatScript(script);
0 commit comments