Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid adding duplicate hint candidates if they are first hops
If we have a direct channel to a node generating an invoice with route hints, we'd previously happily add multiple candidates that all refer to the same channel. To keep our candidate set small and unify our tracking where possible, we now check if its `short_channel_id` is an `outbound_scid_alias` of any of our first hops and refrain from adding another candidate if it's the case.
- Loading branch information