File tree Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -2204,8 +2204,8 @@ where
2204
2204
. into ( ) ) ;
2205
2205
}
2206
2206
2207
- const COMMITMENT_SIGNED_BATCH_LIMIT : usize = 20 ;
2208
- if batch_size > COMMITMENT_SIGNED_BATCH_LIMIT {
2207
+ const BATCH_SIZE_LIMIT : usize = 20 ;
2208
+ if batch_size > BATCH_SIZE_LIMIT {
2209
2209
let error = format ! (
2210
2210
"Peer {} sent start_batch for channel {} exceeding the limit" ,
2211
2211
log_pubkey!( their_node_id) ,
@@ -2227,19 +2227,13 @@ where
2227
2227
MessageBatchImpl :: CommitmentSigned ( messages)
2228
2228
} ,
2229
2229
_ => {
2230
- let error = format ! (
2231
- "Peer {} sent start_batch for channel {} without a known message type" ,
2230
+ log_debug ! (
2231
+ logger,
2232
+ "Peer {} sent start_batch for channel {} without a known message type; ignoring" ,
2232
2233
log_pubkey!( their_node_id) ,
2233
- & msg. channel_id
2234
+ & msg. channel_id,
2234
2235
) ;
2235
- log_debug ! ( logger, "{}" , error) ;
2236
- return Err ( LightningError {
2237
- err : error. clone ( ) ,
2238
- action : msgs:: ErrorAction :: DisconnectPeerWithWarning {
2239
- msg : msgs:: WarningMessage { channel_id : msg. channel_id , data : error } ,
2240
- } ,
2241
- }
2242
- . into ( ) ) ;
2236
+ return Ok ( None ) ;
2243
2237
} ,
2244
2238
} ;
2245
2239
You can’t perform that action at this time.
0 commit comments