Skip to content

Handle htlc_max != channel capacity better in scoring #1559

Open
@TheBlueMatt

Description

@TheBlueMatt

There's two issues today with the way we handle channels with an htlc-max being different from the channel's capacity (which historically was never a thing but we expect to happen more over time, so should support it now):

  • some users expect to operate without validating on chain UTXOs. We should (a) ensure rapid gossip sync includes actual channel capacity and (b) update docs to make clearer that without validation of UTXOs we will score incorrectly,
  • we may think the channel balance available is incorrect as we calculate based on the wrong value. This may mostly already be right but one concern is how do we differentiate between a channels max-in-flight being maxed out vs the channel's balance being actually maxed out. It's unclear to me that that's possible or how we'd account for it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions