@@ -1628,7 +1628,6 @@ pub enum Event {
1628
1628
///
1629
1629
/// [`ChannelManager::blinded_paths_for_async_recipient`]: crate::ln::channelmanager::ChannelManager::blinded_paths_for_async_recipient
1630
1630
/// [`ChannelManager::set_paths_to_static_invoice_server`]: crate::ln::channelmanager::ChannelManager::set_paths_to_static_invoice_server
1631
- #[ cfg( async_payments) ]
1632
1631
PersistStaticInvoice {
1633
1632
/// The invoice that should be persisted and later provided to payers when handling a future
1634
1633
/// [`Event::StaticInvoiceRequested`].
@@ -1645,6 +1644,8 @@ pub enum Event {
1645
1644
///
1646
1645
/// When an [`Event::StaticInvoiceRequested`] comes in for the invoice, this id will be surfaced
1647
1646
/// and can be used alongside the `invoice_id` to retrieve the invoice from the database.
1647
+ ///
1648
+ ///[`ChannelManager::blinded_paths_for_async_recipient`]: crate::ln::channelmanager::ChannelManager::blinded_paths_for_async_recipient
1648
1649
recipient_id : Vec < u8 > ,
1649
1650
/// A random identifier for the invoice. When an [`Event::StaticInvoiceRequested`] comes in for
1650
1651
/// the invoice, this id will be surfaced and can be used alongside the `recipient_id` to
@@ -1676,7 +1677,6 @@ pub enum Event {
1676
1677
/// [`ChannelManager::set_paths_to_static_invoice_server`]: crate::ln::channelmanager::ChannelManager::set_paths_to_static_invoice_server
1677
1678
/// [`InvoiceRequest`]: crate::offers::invoice_request::InvoiceRequest
1678
1679
/// [`ChannelManager::send_static_invoice`]: crate::ln::channelmanager::ChannelManager::send_static_invoice
1679
- #[ cfg( async_payments) ]
1680
1680
StaticInvoiceRequested {
1681
1681
/// An identifier for the recipient previously surfaced in
1682
1682
/// [`Event::PersistStaticInvoice::recipient_id`]. Useful when paired with the `invoice_id` to
@@ -2123,13 +2123,11 @@ impl Writeable for Event {
2123
2123
( 8 , former_temporary_channel_id, required) ,
2124
2124
} ) ;
2125
2125
} ,
2126
- #[ cfg( async_payments) ]
2127
2126
& Event :: PersistStaticInvoice { .. } => {
2128
2127
45u8 . write ( writer) ?;
2129
2128
// No need to write these events because we can just restart the static invoice negotiation
2130
2129
// on startup.
2131
2130
} ,
2132
- #[ cfg( async_payments) ]
2133
2131
& Event :: StaticInvoiceRequested { .. } => {
2134
2132
47u8 . write ( writer) ?;
2135
2133
// Never write StaticInvoiceRequested events as buffered onion messages aren't serialized.
@@ -2711,10 +2709,8 @@ impl MaybeReadable for Event {
2711
2709
} ) )
2712
2710
} ,
2713
2711
// Note that we do not write a length-prefixed TLV for PersistStaticInvoice events.
2714
- #[ cfg( async_payments) ]
2715
2712
45u8 => Ok ( None ) ,
2716
2713
// Note that we do not write a length-prefixed TLV for StaticInvoiceRequested events.
2717
- #[ cfg( async_payments) ]
2718
2714
47u8 => Ok ( None ) ,
2719
2715
// Versions prior to 0.0.100 did not ignore odd types, instead returning InvalidValue.
2720
2716
// Version 0.0.100 failed to properly ignore odd types, possibly resulting in corrupt
0 commit comments