From 799b35a5b45a6c79dc7a3ee525a4d1f9276d8bce Mon Sep 17 00:00:00 2001 From: sputn1ck Date: Wed, 14 Feb 2024 23:34:26 +0100 Subject: [PATCH] routerclient: expand InterceptHtlc func This commit expands the InterceptHtlc func by adding the two remaining fields CustomRecords and OnionBlob to the InterceptedHtlc struct --- router_client.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/router_client.go b/router_client.go index 8b4e0e7..595546f 100644 --- a/router_client.go +++ b/router_client.go @@ -304,6 +304,13 @@ type InterceptedHtlc struct { // Since lnd has non-strict forwarding, this may not be the channel that // the htlc ends up being forwarded on. OutgoingChannelID lnwire.ShortChannelID + + // CustomRecords holds the custom TLV records that were added to the + // payment. + CustomRecords map[uint64][]byte + + // OnionBlob is the onion blob for the next hop. + OnionBlob []byte } // HtlcInterceptHandler is a function signature for handling code for htlc @@ -770,6 +777,8 @@ func (r *routerClient) InterceptHtlcs(ctx context.Context, IncomingExpiryHeight: request.IncomingExpiry, OutgoingExpiryHeight: request.OutgoingExpiry, OutgoingChannelID: chanOut, + CustomRecords: request.CustomRecords, + OnionBlob: request.OnionBlob, } // Try to send our interception request, failing on