@@ -875,6 +875,10 @@ pub struct UserConfig {
875875 /// [`ChannelManager::send_payment_for_bolt12_invoice`]: crate::ln::channelmanager::ChannelManager::send_payment_for_bolt12_invoice
876876 /// [`ChannelManager::abandon_payment`]: crate::ln::channelmanager::ChannelManager::abandon_payment
877877 pub manually_handle_bolt12_invoices : bool ,
878+ /// If this is set to `true`, dual-funded channels will be enabled.
879+ ///
880+ /// Default value: `false`
881+ pub enable_dual_funded_channels : bool ,
878882}
879883
880884impl Default for UserConfig {
@@ -888,6 +892,7 @@ impl Default for UserConfig {
888892 manually_accept_inbound_channels : false ,
889893 accept_intercept_htlcs : false ,
890894 manually_handle_bolt12_invoices : false ,
895+ enable_dual_funded_channels : false ,
891896 }
892897 }
893898}
@@ -907,6 +912,7 @@ impl Readable for UserConfig {
907912 manually_accept_inbound_channels : Readable :: read ( reader) ?,
908913 accept_intercept_htlcs : Readable :: read ( reader) ?,
909914 manually_handle_bolt12_invoices : Readable :: read ( reader) ?,
915+ enable_dual_funded_channels : Readable :: read ( reader) ?,
910916 } )
911917 }
912918}
0 commit comments