@@ -6100,11 +6100,23 @@ impl<M: Deref , T: Deref , K: Deref , F: Deref , L: Deref >
6100
6100
let _ = handle_error ! ( self , self . internal_open_channel( counterparty_node_id, their_features, msg) , * counterparty_node_id) ;
6101
6101
}
6102
6102
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
+
6103
6109
fn handle_accept_channel ( & self , counterparty_node_id : & PublicKey , their_features : InitFeatures , msg : & msgs:: AcceptChannel ) {
6104
6110
let _persistence_guard = PersistenceNotifierGuard :: notify_on_drop ( & self . total_consistency_lock , & self . persistence_notifier ) ;
6105
6111
let _ = handle_error ! ( self , self . internal_accept_channel( counterparty_node_id, their_features, msg) , * counterparty_node_id) ;
6106
6112
}
6107
6113
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
+
6108
6120
fn handle_funding_created ( & self , counterparty_node_id : & PublicKey , msg : & msgs:: FundingCreated ) {
6109
6121
let _persistence_guard = PersistenceNotifierGuard :: notify_on_drop ( & self . total_consistency_lock , & self . persistence_notifier ) ;
6110
6122
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 >
6211
6223
pending_msg_events. retain ( |msg| {
6212
6224
match msg {
6213
6225
& events:: MessageSendEvent :: SendAcceptChannel { ref node_id, .. } => node_id != counterparty_node_id,
6226
+ & events:: MessageSendEvent :: SendAcceptChannelV2 { ref node_id, .. } => node_id != counterparty_node_id,
6214
6227
& events:: MessageSendEvent :: SendOpenChannel { ref node_id, .. } => node_id != counterparty_node_id,
6228
+ & events:: MessageSendEvent :: SendOpenChannelV2 { ref node_id, .. } => node_id != counterparty_node_id,
6215
6229
& events:: MessageSendEvent :: SendFundingCreated { ref node_id, .. } => node_id != counterparty_node_id,
6216
6230
& events:: MessageSendEvent :: SendFundingSigned { ref node_id, .. } => node_id != counterparty_node_id,
6217
6231
& 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,
6218
6241
& events:: MessageSendEvent :: SendAnnouncementSignatures { ref node_id, .. } => node_id != counterparty_node_id,
6219
6242
& events:: MessageSendEvent :: UpdateHTLCs { ref node_id, .. } => node_id != counterparty_node_id,
6220
6243
& 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 >
6341
6364
fn provided_init_features ( & self , _their_init_features : & PublicKey ) -> InitFeatures {
6342
6365
provided_init_features ( )
6343
6366
}
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
+ }
6344
6421
}
6345
6422
6346
6423
/// Fetches the set of [`NodeFeatures`] flags which are provided by or required by
0 commit comments