Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

routerclient: expand InterceptHtlc func #176

Merged
merged 1 commit into from
Feb 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions router_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Loading