htlcswitch: add final htlc event to notifier

This commit is contained in:
Joost Jager
2022-08-29 13:28:17 +02:00
parent 28256b7ea8
commit 511fb00777
21 changed files with 729 additions and 404 deletions

View File

@@ -59,6 +59,18 @@ func (h *htlcIncomingContestResolver) processFinalHtlcFail() error {
return err
}
// Send notification.
h.ChainArbitratorConfig.HtlcNotifier.NotifyFinalHtlcEvent(
channeldb.CircuitKey{
ChanID: h.ShortChanID,
HtlcID: h.htlc.HtlcIndex,
},
channeldb.FinalHtlcInfo{
Settled: false,
Offchain: false,
},
)
return nil
}