Skip to content

Commit b2a70a8

Browse files
Add EventCompletionAction::AckMonitorEvent
XXX
1 parent 6c017cc commit b2a70a8

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
@@ -1567,6 +1567,8 @@ pub(crate) enum EventCompletionAction {
15671567
/// fully-resolved in the [`ChannelMonitor`], which we do via this action.
15681568
/// Note that this action will be dropped on downgrade to LDK prior to 0.2!
15691569
ReleasePaymentCompleteChannelMonitorUpdate(PaymentCompleteUpdate),
1570+
/// XXX
1571+
AckMonitorEvent { event_id: MonitorEventSource },
15701572
}
15711573
impl_writeable_tlv_based_enum!(EventCompletionAction,
15721574
(0, ReleaseRAAChannelMonitorUpdate) => {
@@ -1578,6 +1580,9 @@ impl_writeable_tlv_based_enum!(EventCompletionAction,
15781580
}
15791581
ChannelId::v1_from_funding_outpoint(channel_funding_outpoint.unwrap())
15801582
})),
1583+
},
1584+
(3, AckMonitorEvent) => {
1585+
(1, event_id, required),
15811586
}
15821587
{1, ReleasePaymentCompleteChannelMonitorUpdate} => (),
15831588
);
@@ -15449,6 +15454,9 @@ impl<
1544915454
}
1545015455
}
1545115456
},
15457+
EventCompletionAction::AckMonitorEvent { event_id } => {
15458+
self.chain_monitor.ack_monitor_event(event_id);
15459+
},
1545215460
}
1545315461
}
1545415462
}

0 commit comments

Comments
 (0)