@@ -448,6 +448,13 @@ pub enum Event {
448
448
/// [`ChannelManager`]: crate::ln::channelmanager::ChannelManager
449
449
channel_type : ChannelTypeFeatures ,
450
450
} ,
451
+ /// Indicates that a payment has failed to be forwarded through us
452
+ PaymentForwardedFailed {
453
+ /// The channel_id of the sender
454
+ source_channel_id : u64 ,
455
+ /// The node_id of the receiver where forwarding has failed
456
+ sink_node_id : PublicKey
457
+ } ,
451
458
}
452
459
453
460
impl Writeable for Event {
@@ -566,6 +573,13 @@ impl Writeable for Event {
566
573
// We never write the OpenChannelRequest events as, upon disconnection, peers
567
574
// drop any channels which have not yet exchanged funding_signed.
568
575
} ,
576
+ & Event :: PaymentForwardedFailed { ref source_channel_id, ref sink_node_id } => {
577
+ 18u8 . write ( writer) ?;
578
+ write_tlv_fields ! ( writer, {
579
+ ( 0 , source_channel_id, required) ,
580
+ ( 2 , sink_node_id, required) ,
581
+ } )
582
+ }
569
583
// Note that, going forward, all new events must only write data inside of
570
584
// `write_tlv_fields`. Versions 0.0.101+ will ignore odd-numbered events that write
571
585
// data via `write_tlv_fields`.
0 commit comments