multi: Fix final hop payload size for blinded rt.

The final hop size is calculated differently therefore we extract
the logic in its own function and also account for the case where
the final hop might be a blinded hop.
This commit is contained in:
ziggie committed 2024-02-03 12:11:01 +00:00
1 parent c1b91fff14
commit ff30ff40bf
3 files changed
+211 -22

No files matched your search

+1
View File
@@ -390,6 +390,7 @@ func (r *RouterBackend) parseQueryRoutesRequest(in *lnrpc.QueryRoutesRequest) (
DestCustomRecords: record.CustomSet(in.DestCustomRecords),
CltvLimit: cltvLimit,
DestFeatures: destinationFeatures,
BlindedPayment: blindedPmt,
}
// Pass along an outgoing channel restriction if specified.