@@ -2302,28 +2302,15 @@ static int commit_cmp(const void *a, const void *n, void *peer)
2302
2302
int commit_index_a = commit_index_from_msg (* (u8 * * )a , peer );
2303
2303
int commit_index_n = commit_index_from_msg (* (u8 * * )n , peer );
2304
2304
2305
- status_debug ("commit_cmp a: %p, n: %p result: %d & %d" ,
2306
- * (u8 * * )a , * (u8 * * )n , commit_index_a , commit_index_n );
2307
-
2308
- if (commit_index_a == commit_index_n ) {
2309
- status_debug ("commit_cmp: return 0" );
2305
+ if (commit_index_a == commit_index_n )
2310
2306
return 0 ;
2311
- }
2312
-
2313
2307
/* Unrecognized commits go on the end */
2314
- if (commit_index_a == -1 ) {
2315
- status_debug ("commit_cmp: return 1" );
2308
+ if (commit_index_a == -1 )
2316
2309
return 1 ;
2317
- }
2318
2310
2319
- if (commit_index_n == -1 ) {
2320
- status_debug ("commit_cmp: return -1" );
2311
+ if (commit_index_n == -1 )
2321
2312
return -1 ;
2322
- }
2323
2313
2324
- status_debug ("commit_cmp: return %d - %d = %d" ,
2325
- commit_index_a , commit_index_n ,
2326
- commit_index_a - commit_index_n );
2327
2314
/* Otherwise we sort by commit_index */
2328
2315
return commit_index_a - commit_index_n ;
2329
2316
}
@@ -2362,7 +2349,6 @@ static struct commitsig_info *handle_peer_commit_sig_batch(struct peer *peer,
2362
2349
2363
2350
msg_batch = tal_arr (tmpctx , const u8 * , batch_size );
2364
2351
msg_batch [0 ] = msg ;
2365
- status_debug ("msg_batch[0]: %p" , msg_batch [0 ]);
2366
2352
2367
2353
/* Already received commitment signed once, so start at i = 1 */
2368
2354
for (u16 i = 1 ; i < batch_size ; i ++ ) {
@@ -2378,7 +2364,6 @@ static struct commitsig_info *handle_peer_commit_sig_batch(struct peer *peer,
2378
2364
"Expected splice related "
2379
2365
"WIRE_COMMITMENT_SIGNED but got %s" ,
2380
2366
peer_wire_name (type ));
2381
- status_debug ("fromwire_commitment_signed(%p) splice index %d" , sub_msg , (int )i );
2382
2367
if (!fromwire_commitment_signed (tmpctx , sub_msg ,
2383
2368
& channel_id , & commit_sig .s ,
2384
2369
& raw_sigs , & sub_cs_tlv ))
@@ -2396,7 +2381,6 @@ static struct commitsig_info *handle_peer_commit_sig_batch(struct peer *peer,
2396
2381
tal_hex (sub_msg , sub_msg ), i , batch_size );
2397
2382
2398
2383
msg_batch [i ] = sub_msg ;
2399
- status_debug ("msg_batch[%d]: %p" , (int )i , msg_batch [i ]);
2400
2384
}
2401
2385
2402
2386
status_debug ("Sorting the msg_batch of tal_count %d, batch_size: %d" , (int )tal_count (msg_batch ), (int )batch_size );
0 commit comments