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
2024-02-03 11:59:29 +00:00
parent c1b91fff14
commit ff30ff40bf
3 changed files with 211 additions and 22 deletions

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.