@@ -1634,7 +1634,6 @@ pub enum Event {
1634
1634
///
1635
1635
/// [`ChannelManager::blinded_paths_for_async_recipient`]: crate::ln::channelmanager::ChannelManager::blinded_paths_for_async_recipient
1636
1636
/// [`ChannelManager::set_paths_to_static_invoice_server`]: crate::ln::channelmanager::ChannelManager::set_paths_to_static_invoice_server
1637
- #[ cfg( async_payments) ]
1638
1637
PersistStaticInvoice {
1639
1638
/// The invoice that should be persisted and later provided to payers when handling a future
1640
1639
/// [`Event::StaticInvoiceRequested`].
@@ -1651,6 +1650,8 @@ pub enum Event {
1651
1650
///
1652
1651
/// When an [`Event::StaticInvoiceRequested`] comes in for the invoice, this id will be surfaced
1653
1652
/// 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
1654
1655
recipient_id : Vec < u8 > ,
1655
1656
/// A random identifier for the invoice. When an [`Event::StaticInvoiceRequested`] comes in for
1656
1657
/// the invoice, this id will be surfaced and can be used alongside the `recipient_id` to
@@ -1682,7 +1683,6 @@ pub enum Event {
1682
1683
/// [`ChannelManager::set_paths_to_static_invoice_server`]: crate::ln::channelmanager::ChannelManager::set_paths_to_static_invoice_server
1683
1684
/// [`InvoiceRequest`]: crate::offers::invoice_request::InvoiceRequest
1684
1685
/// [`ChannelManager::send_static_invoice`]: crate::ln::channelmanager::ChannelManager::send_static_invoice
1685
- #[ cfg( async_payments) ]
1686
1686
StaticInvoiceRequested {
1687
1687
/// An identifier for the recipient previously surfaced in
1688
1688
/// [`Event::PersistStaticInvoice::recipient_id`]. Useful when paired with the `invoice_id` to
@@ -2175,13 +2175,11 @@ impl Writeable for Event {
2175
2175
( 8 , former_temporary_channel_id, required) ,
2176
2176
} ) ;
2177
2177
} ,
2178
- #[ cfg( async_payments) ]
2179
2178
& Event :: PersistStaticInvoice { .. } => {
2180
2179
45u8 . write ( writer) ?;
2181
2180
// No need to write these events because we can just restart the static invoice negotiation
2182
2181
// on startup.
2183
2182
} ,
2184
- #[ cfg( async_payments) ]
2185
2183
& Event :: StaticInvoiceRequested { .. } => {
2186
2184
47u8 . write ( writer) ?;
2187
2185
// Never write StaticInvoiceRequested events as buffered onion messages aren't serialized.
@@ -2768,10 +2766,8 @@ impl MaybeReadable for Event {
2768
2766
} ) )
2769
2767
} ,
2770
2768
// Note that we do not write a length-prefixed TLV for PersistStaticInvoice events.
2771
- #[ cfg( async_payments) ]
2772
2769
45u8 => Ok ( None ) ,
2773
2770
// Note that we do not write a length-prefixed TLV for StaticInvoiceRequested events.
2774
- #[ cfg( async_payments) ]
2775
2771
47u8 => Ok ( None ) ,
2776
2772
// Note that we do not write a length-prefixed TLV for FundingTransactionReadyForSigning events.
2777
2773
49u8 => Ok ( None ) ,
0 commit comments