Skip to content

Commit 6d91a1f

Browse files
committed
f - check batch in commitment_signed_initial_v2
1 parent ade88ea commit 6d91a1f

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
@@ -5749,6 +5749,11 @@ impl<SP: Deref> FundedChannel<SP> where
57495749
ClosureReason::HolderForceClosed { broadcasted_latest_txn: Some(false) },
57505750
)));
57515751
}
5752+
5753+
if msg.batch.is_some() {
5754+
return Err(ChannelError::close("Peer sent initial commitment_signed with a batch".to_owned()));
5755+
}
5756+
57525757
let holder_commitment_point = &mut self.holder_commitment_point.clone();
57535758
self.context.assert_no_commitment_advancement(holder_commitment_point.transaction_number(), "initial commitment_signed");
57545759

0 commit comments

Comments
 (0)