///
/// [`ChannelManager`]: crate::ln::channelmanager::ChannelManager
pub accept_mpp_keysend: bool,
+ /// If this is set to true, the user needs to manually pay [`Bolt12Invoice`]s when received.
+ ///
+ /// When set to true, [`Event::InvoiceReceived`] will be generated for each received
+ /// [`Bolt12Invoice`] instead of being automatically paid after verification.
+ ///
+ /// Default value: false.
+ ///
+ /// [`Bolt12Invoice`]: crate::offers::invoice::Bolt12Invoice
+ /// [`Event::InvoiceReceived`]: crate::events::Event::InvoiceReceived
+ pub manually_handle_bolt12_invoices: bool,
}
impl Default for UserConfig {
manually_accept_inbound_channels: false,
accept_intercept_htlcs: false,
accept_mpp_keysend: false,
+ manually_handle_bolt12_invoices: false,
}
}
}
manually_accept_inbound_channels: Readable::read(reader)?,
accept_intercept_htlcs: Readable::read(reader)?,
accept_mpp_keysend: Readable::read(reader)?,
+ manually_handle_bolt12_invoices: Readable::read(reader)?,
})
}
}