Skip to content

Commit 6b41870

Browse files
committed
Rename COMMITMENT_SIGNED_BATCH_LIMIT
The constant is not specific to commitment_signed but rather to start_batch in general.
1 parent b5bfa85 commit 6b41870

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/ln/peer_handler.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2204,8 +2204,8 @@ where
22042204
.into());
22052205
}
22062206

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 {
22092209
let error = format!(
22102210
"Peer {} sent start_batch for channel {} exceeding the limit",
22112211
log_pubkey!(their_node_id),

0 commit comments

Comments
 (0)