Merge pull request #5236 from offerm/preimage-to-settleevent
feature: expose preimage in forward+settle event
This commit is contained in:
10 files changed
+295
-251
No files matched your search
@@ -1449,6 +1449,7 @@ func (l *channelLink) handleDownstreamPkt(pkt *htlcPacket) {
|
||||
// Send a settle event notification to htlcNotifier.
|
||||
l.cfg.HtlcNotifier.NotifySettleEvent(
|
||||
newHtlcKey(pkt),
|
||||
htlc.PaymentPreimage,
|
||||
getEventType(pkt),
|
||||
)
|
||||
|
||||
@@ -2990,6 +2991,7 @@ func (l *channelLink) settleHTLC(preimage lntypes.Preimage,
|
||||
HtlcID: pd.HtlcIndex,
|
||||
},
|
||||
},
|
||||
preimage,
|
||||
HtlcEventTypeReceive,
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user