@@ -29,7 +29,7 @@ struct test_case {
29
29
static struct amount_sat fromwire_amount_sat_bounded (const u8 * * cursor , size_t * max )
30
30
{
31
31
struct amount_sat amt = fromwire_amount_sat (cursor , max );
32
- amt .satoshis %= (MAX_SATS + 1 );
32
+ amt .satoshis %= (MAX_SATS + 1 ); /* Raw: fuzzing */
33
33
return amt ;
34
34
}
35
35
@@ -129,20 +129,20 @@ void run(const u8 *data, size_t size)
129
129
}
130
130
if (amount_sat_greater (total , tcase -> max_channel_size )) {
131
131
fprintf (stderr , "Total channel capacity %" PRIu64 " exceeds size %" PRIu64 "\n" ,
132
- total .satoshis , tcase -> max_channel_size .satoshis );
132
+ total .satoshis , tcase -> max_channel_size .satoshis ); /* Raw: fuzzing */
133
133
abort ();
134
134
}
135
135
136
136
/* Check our_funds is within per-channel limits */
137
137
if (amount_sat_less (our_funds , tcase -> policy .per_channel_min ) &&
138
138
!amount_sat_is_zero (our_funds )) {
139
139
fprintf (stderr , "our_funds %" PRIu64 " < per_channel_min %" PRIu64 "\n" ,
140
- our_funds .satoshis , tcase -> policy .per_channel_min .satoshis );
140
+ our_funds .satoshis , tcase -> policy .per_channel_min .satoshis ); /* Raw: fuzzing */
141
141
abort ();
142
142
}
143
143
if (amount_sat_greater (our_funds , tcase -> policy .per_channel_max )) {
144
144
fprintf (stderr , "our_funds %" PRIu64 " > per_max_channel_size %" PRIu64 "\n" ,
145
- our_funds .satoshis , tcase -> policy .per_channel_max .satoshis );
145
+ our_funds .satoshis , tcase -> policy .per_channel_max .satoshis ); /* Raw: fuzzing */
146
146
abort ();
147
147
}
148
148
}
@@ -152,14 +152,14 @@ void run(const u8 *data, size_t size)
152
152
if (amount_sat_sub (& available_minus_reserve , tcase -> available_funds , tcase -> policy .reserve_tank )) {
153
153
if (amount_sat_greater (our_funds , available_minus_reserve )) {
154
154
fprintf (stderr , "our_funds %" PRIu64 " > available %" PRIu64 " - reserve %" PRIu64 "\n" ,
155
- our_funds .satoshis , tcase -> available_funds .satoshis ,
156
- tcase -> policy .reserve_tank .satoshis );
155
+ our_funds .satoshis , tcase -> available_funds .satoshis , /* Raw: fuzzing */
156
+ tcase -> policy .reserve_tank .satoshis ); /* Raw: fuzzing */
157
157
abort ();
158
158
}
159
159
} else if (!amount_sat_eq (our_funds , AMOUNT_SAT (0 ))) {
160
160
fprintf (stderr , "Reserve %" PRIu64 " >= available %" PRIu64 " but our_funds %" PRIu64 " != 0\n" ,
161
- tcase -> policy .reserve_tank .satoshis , tcase -> available_funds .satoshis ,
162
- our_funds .satoshis );
161
+ tcase -> policy .reserve_tank .satoshis , tcase -> available_funds .satoshis , /* Raw: fuzzing */
162
+ our_funds .satoshis ); /* Raw: fuzzing */
163
163
abort ();
164
164
}
165
165
0 commit comments