Skip to content

Commit

Permalink
f wrong commitment side
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlueMatt committed Nov 9, 2023
1 parent ed96352 commit 6e16315
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lightning/src/ln/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4303,13 +4303,13 @@ impl<SP: Deref> Channel<SP> where
}
} else if msg.next_local_commitment_number < next_counterparty_commitment_number {
Err(ChannelError::Close(format!(
"Peer attempted to reestablish channel with a very old local commitment transaction: {} (received) vs {} (expected)",
"Peer attempted to reestablish channel with a very old remote commitment transaction: {} (received) vs {} (expected)",
msg.next_local_commitment_number,
next_counterparty_commitment_number,
)))
} else {
Err(ChannelError::Close(format!(
"Peer attempted to reestablish channel with a future local commitment transaction: {} (received) vs {} (expected)",
"Peer attempted to reestablish channel with a future remote commitment transaction: {} (received) vs {} (expected)",
msg.next_local_commitment_number,
next_counterparty_commitment_number,
)))
Expand Down

0 comments on commit 6e16315

Please sign in to comment.