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 43fc7a5 commit efaf80eCopy full SHA for efaf80e
src/test/fuzz/script.cpp
@@ -71,7 +71,15 @@ FUZZ_TARGET_INIT(script, initialize_script)
71
(void)IsSolvable(signing_provider, script);
72
73
TxoutType which_type;
74
- (void)IsStandard(script, which_type);
+ bool is_standard_ret = IsStandard(script, which_type);
75
+ if (!is_standard_ret) {
76
+ assert(which_type == TxoutType::NONSTANDARD ||
77
+ which_type == TxoutType::NULL_DATA ||
78
+ which_type == TxoutType::MULTISIG);
79
+ }
80
+ if (which_type == TxoutType::NONSTANDARD) {
81
+ assert(!is_standard_ret);
82
83
if (which_type == TxoutType::NULL_DATA) {
84
assert(script.IsUnspendable());
85
}
0 commit comments