@@ -878,6 +878,10 @@ pub struct UserConfig {
878878 /// [`ChannelManager::send_payment_for_bolt12_invoice`]: crate::ln::channelmanager::ChannelManager::send_payment_for_bolt12_invoice
879879 /// [`ChannelManager::abandon_payment`]: crate::ln::channelmanager::ChannelManager::abandon_payment
880880 pub manually_handle_bolt12_invoices : bool ,
881+ /// If this is set to `true`, dual-funded channels will be enabled.
882+ ///
883+ /// Default value: `false`
884+ pub enable_dual_funded_channels : bool ,
881885}
882886
883887impl Default for UserConfig {
@@ -891,6 +895,7 @@ impl Default for UserConfig {
891895 manually_accept_inbound_channels : false ,
892896 accept_intercept_htlcs : false ,
893897 manually_handle_bolt12_invoices : false ,
898+ enable_dual_funded_channels : false ,
894899 }
895900 }
896901}
@@ -910,6 +915,7 @@ impl Readable for UserConfig {
910915 manually_accept_inbound_channels : Readable :: read ( reader) ?,
911916 accept_intercept_htlcs : Readable :: read ( reader) ?,
912917 manually_handle_bolt12_invoices : Readable :: read ( reader) ?,
918+ enable_dual_funded_channels : Readable :: read ( reader) ?,
913919 } )
914920 }
915921}
0 commit comments