Skip to content

Commit 143a56f

Browse files
Add EventCompletionAction::AckMonitorEvent
XXX
1 parent d885e38 commit 143a56f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

lightning/src/ln/channelmanager.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1553,6 +1553,8 @@ pub(crate) enum EventCompletionAction {
15531553
/// fully-resolved in the [`ChannelMonitor`], which we do via this action.
15541554
/// Note that this action will be dropped on downgrade to LDK prior to 0.2!
15551555
ReleasePaymentCompleteChannelMonitorUpdate(PaymentCompleteUpdate),
1556+
/// XXX
1557+
AckMonitorEvent { event_id: MonitorEventSource },
15561558
}
15571559
impl_writeable_tlv_based_enum!(EventCompletionAction,
15581560
(0, ReleaseRAAChannelMonitorUpdate) => {
@@ -1564,6 +1566,9 @@ impl_writeable_tlv_based_enum!(EventCompletionAction,
15641566
}
15651567
ChannelId::v1_from_funding_outpoint(channel_funding_outpoint.unwrap())
15661568
})),
1569+
},
1570+
(3, AckMonitorEvent) => {
1571+
(1, event_id, required),
15671572
}
15681573
{1, ReleasePaymentCompleteChannelMonitorUpdate} => (),
15691574
);
@@ -15375,6 +15380,9 @@ impl<
1537515380
}
1537615381
}
1537715382
},
15383+
EventCompletionAction::AckMonitorEvent { event_id } => {
15384+
self.chain_monitor.ack_monitor_event(event_id);
15385+
},
1537815386
}
1537915387
}
1538015388
}

0 commit comments

Comments
 (0)