Skip to content

Commit 3a20546

Browse files
committed
f - check batch in commitment_signed_initial_v2
1 parent d0a7ed4 commit 3a20546

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lightning/src/ln/channel.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5745,6 +5745,11 @@ impl<SP: Deref> FundedChannel<SP> where
57455745
ClosureReason::HolderForceClosed { broadcasted_latest_txn: Some(false) },
57465746
)));
57475747
}
5748+
5749+
if msg.batch.is_some() {
5750+
return Err(ChannelError::close("Peer sent initial commitment_signed with a batch".to_owned()));
5751+
}
5752+
57485753
let holder_commitment_point = &mut self.holder_commitment_point.clone();
57495754
self.context.assert_no_commitment_advancement(holder_commitment_point.transaction_number(), "initial commitment_signed");
57505755

0 commit comments

Comments
 (0)