@@ -1634,7 +1634,6 @@ pub enum Event {
16341634 ///
16351635 /// [`ChannelManager::blinded_paths_for_async_recipient`]: crate::ln::channelmanager::ChannelManager::blinded_paths_for_async_recipient
16361636 /// [`ChannelManager::set_paths_to_static_invoice_server`]: crate::ln::channelmanager::ChannelManager::set_paths_to_static_invoice_server
1637- #[ cfg( async_payments) ]
16381637 PersistStaticInvoice {
16391638 /// The invoice that should be persisted and later provided to payers when handling a future
16401639 /// [`Event::StaticInvoiceRequested`].
@@ -1651,6 +1650,8 @@ pub enum Event {
16511650 ///
16521651 /// When an [`Event::StaticInvoiceRequested`] comes in for the invoice, this id will be surfaced
16531652 /// and can be used alongside the `invoice_id` to retrieve the invoice from the database.
1653+ ///
1654+ ///[`ChannelManager::blinded_paths_for_async_recipient`]: crate::ln::channelmanager::ChannelManager::blinded_paths_for_async_recipient
16541655 recipient_id : Vec < u8 > ,
16551656 /// A random identifier for the invoice. When an [`Event::StaticInvoiceRequested`] comes in for
16561657 /// the invoice, this id will be surfaced and can be used alongside the `recipient_id` to
@@ -1682,7 +1683,6 @@ pub enum Event {
16821683 /// [`ChannelManager::set_paths_to_static_invoice_server`]: crate::ln::channelmanager::ChannelManager::set_paths_to_static_invoice_server
16831684 /// [`InvoiceRequest`]: crate::offers::invoice_request::InvoiceRequest
16841685 /// [`ChannelManager::send_static_invoice`]: crate::ln::channelmanager::ChannelManager::send_static_invoice
1685- #[ cfg( async_payments) ]
16861686 StaticInvoiceRequested {
16871687 /// An identifier for the recipient previously surfaced in
16881688 /// [`Event::PersistStaticInvoice::recipient_id`]. Useful when paired with the `invoice_id` to
@@ -2175,13 +2175,11 @@ impl Writeable for Event {
21752175 ( 8 , former_temporary_channel_id, required) ,
21762176 } ) ;
21772177 } ,
2178- #[ cfg( async_payments) ]
21792178 & Event :: PersistStaticInvoice { .. } => {
21802179 45u8 . write ( writer) ?;
21812180 // No need to write these events because we can just restart the static invoice negotiation
21822181 // on startup.
21832182 } ,
2184- #[ cfg( async_payments) ]
21852183 & Event :: StaticInvoiceRequested { .. } => {
21862184 47u8 . write ( writer) ?;
21872185 // Never write StaticInvoiceRequested events as buffered onion messages aren't serialized.
@@ -2768,10 +2766,8 @@ impl MaybeReadable for Event {
27682766 } ) )
27692767 } ,
27702768 // Note that we do not write a length-prefixed TLV for PersistStaticInvoice events.
2771- #[ cfg( async_payments) ]
27722769 45u8 => Ok ( None ) ,
27732770 // Note that we do not write a length-prefixed TLV for StaticInvoiceRequested events.
2774- #[ cfg( async_payments) ]
27752771 47u8 => Ok ( None ) ,
27762772 // Note that we do not write a length-prefixed TLV for FundingTransactionReadyForSigning events.
27772773 49u8 => Ok ( None ) ,
0 commit comments