File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -11008,8 +11008,16 @@ where
11008
11008
11009
11009
let their_funding_contribution = SignedAmount::from_sat(msg.funding_contribution_satoshis);
11010
11010
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",
11013
11021
self.context.channel_id(),
11014
11022
their_funding_contribution,
11015
11023
)));
You can’t perform that action at this time.
0 commit comments