Skip to content

Filtering route hints included in lightning-invoice::utils-constructed invoicse #1279

@TheBlueMatt

Description

@TheBlueMatt

Currently in create_invoice_from_channelmanager (and in create_phantom_invoice after #1199), we just blindly include hints about all the channels we have. This is usually not the right behavior. There's a few ways we should filter these:

  1. If we have multiple channels with the same counterparty node, only one needs to be included (see Use substitude channel for forwarding if we have another with the same peer #1278).
  2. If we have a mix of public and private channels, we probably shouldn't include any route hints, letting the sender look at our public channels (in general if we have public and private channels we probably dont want to dox our private channel peers, there's no need to).

Tagging good first issue, but if someone does take this up, probably base it on #1199 or wait until that is merged.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions