You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Require inbound channels with anchor outputs to be accepted manually
Since the use of channels with anchor outputs requires a reserve of
onchain funds to handle channel force closures, it would be
irresponsible to allow a node to accept inbound channel without first
consulting such reserves. To allow users to do so, we require such
channels be manually accepted.
Copy file name to clipboardExpand all lines: lightning/src/ln/channelmanager.rs
+50-2
Original file line number
Diff line number
Diff line change
@@ -5103,9 +5103,13 @@ where
5103
5103
returnErr(MsgHandleErrInternal::send_err_msg_no_close("temporary_channel_id collision for the same peer!".to_owned(), msg.temporary_channel_id.clone()))
5104
5104
}else{
5105
5105
if !self.default_configuration.manually_accept_inbound_channels{
5106
-
if channel.context.get_channel_type().requires_zero_conf(){
5106
+
let channel_type = channel.context.get_channel_type();
5107
+
if channel_type.requires_zero_conf(){
5107
5108
returnErr(MsgHandleErrInternal::send_err_msg_no_close("No zero confirmation channels accepted".to_owned(), msg.temporary_channel_id.clone()));
5108
5109
}
5110
+
if channel_type.requires_anchors_zero_fee_htlc_tx(){
5111
+
returnErr(MsgHandleErrInternal::send_err_msg_no_close("No channels with anchor outputs accepted".to_owned(), msg.temporary_channel_id.clone()));
0 commit comments