File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11008,8 +11008,16 @@ where
1100811008
1100911009 let their_funding_contribution = SignedAmount::from_sat(msg.funding_contribution_satoshis);
1101011010 if their_funding_contribution > SignedAmount::MAX_MONEY {
11011- return Err(ChannelError::Warn(format!(
11012- "Channel {} cannot be spliced; their contribution exceeds total bitcoin supply: {}",
11011+ return Err(ChannelError::WarnAndDisconnect(format!(
11012+ "Channel {} cannot be spliced in; their {} contribution exceeds the total bitcoin supply",
11013+ self.context.channel_id(),
11014+ their_funding_contribution,
11015+ )));
11016+ }
11017+
11018+ if their_funding_contribution < -SignedAmount::MAX_MONEY {
11019+ return Err(ChannelError::WarnAndDisconnect(format!(
11020+ "Channel {} cannot be spliced out; their {} contribution exhausts the total bitcoin supply",
1101311021 self.context.channel_id(),
1101411022 their_funding_contribution,
1101511023 )));
You can’t perform that action at this time.
0 commit comments