@@ -6100,11 +6100,23 @@ impl<M: Deref , T: Deref , K: Deref , F: Deref , L: Deref >
61006100 let _ = handle_error ! ( self , self . internal_open_channel( counterparty_node_id, their_features, msg) , * counterparty_node_id) ;
61016101 }
61026102
6103+ fn handle_open_channel_v2 ( & self , counterparty_node_id : & PublicKey , _their_features : InitFeatures , msg : & msgs:: OpenChannelV2 ) {
6104+ let _: Result < ( ) , _ > = handle_error ! ( self , Err ( MsgHandleErrInternal :: send_err_msg_no_close(
6105+ "Dual-funded channels not supported" . to_owned( ) ,
6106+ msg. temporary_channel_id. clone( ) ) ) , * counterparty_node_id) ;
6107+ }
6108+
61036109 fn handle_accept_channel ( & self , counterparty_node_id : & PublicKey , their_features : InitFeatures , msg : & msgs:: AcceptChannel ) {
61046110 let _persistence_guard = PersistenceNotifierGuard :: notify_on_drop ( & self . total_consistency_lock , & self . persistence_notifier ) ;
61056111 let _ = handle_error ! ( self , self . internal_accept_channel( counterparty_node_id, their_features, msg) , * counterparty_node_id) ;
61066112 }
61076113
6114+ fn handle_accept_channel_v2 ( & self , counterparty_node_id : & PublicKey , _their_features : InitFeatures , msg : & msgs:: AcceptChannelV2 ) {
6115+ let _: Result < ( ) , _ > = handle_error ! ( self , Err ( MsgHandleErrInternal :: send_err_msg_no_close(
6116+ "Dual-funded channels not supported" . to_owned( ) ,
6117+ msg. temporary_channel_id. clone( ) ) ) , * counterparty_node_id) ;
6118+ }
6119+
61086120 fn handle_funding_created ( & self , counterparty_node_id : & PublicKey , msg : & msgs:: FundingCreated ) {
61096121 let _persistence_guard = PersistenceNotifierGuard :: notify_on_drop ( & self . total_consistency_lock , & self . persistence_notifier ) ;
61106122 let _ = handle_error ! ( self , self . internal_funding_created( counterparty_node_id, msg) , * counterparty_node_id) ;
@@ -6211,10 +6223,21 @@ impl<M: Deref , T: Deref , K: Deref , F: Deref , L: Deref >
62116223 pending_msg_events. retain ( |msg| {
62126224 match msg {
62136225 & events:: MessageSendEvent :: SendAcceptChannel { ref node_id, .. } => node_id != counterparty_node_id,
6226+ & events:: MessageSendEvent :: SendAcceptChannelV2 { ref node_id, .. } => node_id != counterparty_node_id,
62146227 & events:: MessageSendEvent :: SendOpenChannel { ref node_id, .. } => node_id != counterparty_node_id,
6228+ & events:: MessageSendEvent :: SendOpenChannelV2 { ref node_id, .. } => node_id != counterparty_node_id,
62156229 & events:: MessageSendEvent :: SendFundingCreated { ref node_id, .. } => node_id != counterparty_node_id,
62166230 & events:: MessageSendEvent :: SendFundingSigned { ref node_id, .. } => node_id != counterparty_node_id,
62176231 & events:: MessageSendEvent :: SendChannelReady { ref node_id, .. } => node_id != counterparty_node_id,
6232+ & events:: MessageSendEvent :: SendTxAddInput { ref node_id, .. } => node_id != counterparty_node_id,
6233+ & events:: MessageSendEvent :: SendTxAddOutput { ref node_id, .. } => node_id != counterparty_node_id,
6234+ & events:: MessageSendEvent :: SendTxRemoveInput { ref node_id, .. } => node_id != counterparty_node_id,
6235+ & events:: MessageSendEvent :: SendTxRemoveOutput { ref node_id, .. } => node_id != counterparty_node_id,
6236+ & events:: MessageSendEvent :: SendTxComplete { ref node_id, .. } => node_id != counterparty_node_id,
6237+ & events:: MessageSendEvent :: SendTxSignatures { ref node_id, .. } => node_id != counterparty_node_id,
6238+ & events:: MessageSendEvent :: SendTxInitRbf { ref node_id, .. } => node_id != counterparty_node_id,
6239+ & events:: MessageSendEvent :: SendTxAckRbf { ref node_id, .. } => node_id != counterparty_node_id,
6240+ & events:: MessageSendEvent :: SendTxAbort { ref node_id, .. } => node_id != counterparty_node_id,
62186241 & events:: MessageSendEvent :: SendAnnouncementSignatures { ref node_id, .. } => node_id != counterparty_node_id,
62196242 & events:: MessageSendEvent :: UpdateHTLCs { ref node_id, .. } => node_id != counterparty_node_id,
62206243 & events:: MessageSendEvent :: SendRevokeAndACK { ref node_id, .. } => node_id != counterparty_node_id,
@@ -6341,6 +6364,60 @@ impl<M: Deref , T: Deref , K: Deref , F: Deref , L: Deref >
63416364 fn provided_init_features ( & self , _their_init_features : & PublicKey ) -> InitFeatures {
63426365 provided_init_features ( )
63436366 }
6367+
6368+ fn handle_tx_add_input ( & self , counterparty_node_id : & PublicKey , msg : & msgs:: TxAddInput ) {
6369+ let _: Result < ( ) , _ > = handle_error ! ( self , Err ( MsgHandleErrInternal :: send_err_msg_no_close(
6370+ "Dual-funded channels not supported" . to_owned( ) ,
6371+ msg. channel_id. clone( ) ) ) , * counterparty_node_id) ;
6372+ }
6373+
6374+ fn handle_tx_add_output ( & self , counterparty_node_id : & PublicKey , msg : & msgs:: TxAddOutput ) {
6375+ let _: Result < ( ) , _ > = handle_error ! ( self , Err ( MsgHandleErrInternal :: send_err_msg_no_close(
6376+ "Dual-funded channels not supported" . to_owned( ) ,
6377+ msg. channel_id. clone( ) ) ) , * counterparty_node_id) ;
6378+ }
6379+
6380+ fn handle_tx_remove_input ( & self , counterparty_node_id : & PublicKey , msg : & msgs:: TxRemoveInput ) {
6381+ let _: Result < ( ) , _ > = handle_error ! ( self , Err ( MsgHandleErrInternal :: send_err_msg_no_close(
6382+ "Dual-funded channels not supported" . to_owned( ) ,
6383+ msg. channel_id. clone( ) ) ) , * counterparty_node_id) ;
6384+ }
6385+
6386+ fn handle_tx_remove_output ( & self , counterparty_node_id : & PublicKey , msg : & msgs:: TxRemoveOutput ) {
6387+ let _: Result < ( ) , _ > = handle_error ! ( self , Err ( MsgHandleErrInternal :: send_err_msg_no_close(
6388+ "Dual-funded channels not supported" . to_owned( ) ,
6389+ msg. channel_id. clone( ) ) ) , * counterparty_node_id) ;
6390+ }
6391+
6392+ fn handle_tx_complete ( & self , counterparty_node_id : & PublicKey , msg : & msgs:: TxComplete ) {
6393+ let _: Result < ( ) , _ > = handle_error ! ( self , Err ( MsgHandleErrInternal :: send_err_msg_no_close(
6394+ "Dual-funded channels not supported" . to_owned( ) ,
6395+ msg. channel_id. clone( ) ) ) , * counterparty_node_id) ;
6396+ }
6397+
6398+ fn handle_tx_signatures ( & self , counterparty_node_id : & PublicKey , msg : & msgs:: TxSignatures ) {
6399+ let _: Result < ( ) , _ > = handle_error ! ( self , Err ( MsgHandleErrInternal :: send_err_msg_no_close(
6400+ "Dual-funded channels not supported" . to_owned( ) ,
6401+ msg. channel_id. clone( ) ) ) , * counterparty_node_id) ;
6402+ }
6403+
6404+ fn handle_tx_init_rbf ( & self , counterparty_node_id : & PublicKey , msg : & msgs:: TxInitRbf ) {
6405+ let _: Result < ( ) , _ > = handle_error ! ( self , Err ( MsgHandleErrInternal :: send_err_msg_no_close(
6406+ "Dual-funded channels not supported" . to_owned( ) ,
6407+ msg. channel_id. clone( ) ) ) , * counterparty_node_id) ;
6408+ }
6409+
6410+ fn handle_tx_ack_rbf ( & self , counterparty_node_id : & PublicKey , msg : & msgs:: TxAckRbf ) {
6411+ let _: Result < ( ) , _ > = handle_error ! ( self , Err ( MsgHandleErrInternal :: send_err_msg_no_close(
6412+ "Dual-funded channels not supported" . to_owned( ) ,
6413+ msg. channel_id. clone( ) ) ) , * counterparty_node_id) ;
6414+ }
6415+
6416+ fn handle_tx_abort ( & self , counterparty_node_id : & PublicKey , msg : & msgs:: TxAbort ) {
6417+ let _: Result < ( ) , _ > = handle_error ! ( self , Err ( MsgHandleErrInternal :: send_err_msg_no_close(
6418+ "Dual-funded channels not supported" . to_owned( ) ,
6419+ msg. channel_id. clone( ) ) ) , * counterparty_node_id) ;
6420+ }
63446421}
63456422
63466423/// Fetches the set of [`NodeFeatures`] flags which are provided by or required by
0 commit comments