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-2Lines changed: 50 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -5039,9 +5039,13 @@ where
5039
5039
returnErr(MsgHandleErrInternal::send_err_msg_no_close("temporary_channel_id collision for the same peer!".to_owned(), msg.temporary_channel_id.clone()))
5040
5040
}else{
5041
5041
if !self.default_configuration.manually_accept_inbound_channels{
5042
-
if channel.context.get_channel_type().requires_zero_conf(){
5042
+
let channel_type = channel.context.get_channel_type();
5043
+
if channel_type.requires_zero_conf(){
5043
5044
returnErr(MsgHandleErrInternal::send_err_msg_no_close("No zero confirmation channels accepted".to_owned(), msg.temporary_channel_id.clone()));
5044
5045
}
5046
+
if channel_type.requires_anchors_zero_fee_htlc_tx(){
5047
+
returnErr(MsgHandleErrInternal::send_err_msg_no_close("No channels with anchor outputs accepted".to_owned(), msg.temporary_channel_id.clone()));
0 commit comments