Skip to content

Commit 8ef76e9

Browse files
committed
Use WarnAndDisconnect to fail a splice
When the current holder commitment point is unavailable for a channel, we can't splice the channel. Make sure to disconnect so that the channel is no longer quiescent. Otherwise, it cannot be used for payments.
1 parent 9d2d368 commit 8ef76e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/channel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10682,7 +10682,7 @@ where
1068210682
// TODO(splicing): Add check that we are the quiescence acceptor
1068310683

1068410684
if self.holder_commitment_point.current_point().is_none() {
10685-
return Err(ChannelError::Warn(format!(
10685+
return Err(ChannelError::WarnAndDisconnect(format!(
1068610686
"Channel {} commitment point needs to be advanced once before spliced",
1068710687
self.context.channel_id(),
1068810688
)));

0 commit comments

Comments
 (0)