Skip to content

Setting max_path_count to channel_manager.list_usable_channels().len() fails to route full amount #3727

Open
@MaxFangX

Description

@MaxFangX

For convenience, here's the scenario in #3685 which is fixed by #3707:

  • Alice -> Bob 200k and 300k sat channels
  • Bob -> Charlie 600k sat private channel
  • Send a MPP payment Alice -> Charlie of size 350k sats

If we amend this scenario so that:

  • Alice limits max_path_count to channel_manager.list_usable_channels().len() (i.e. 2)
  • Alice tries to send 450k sats instead of 350k sats

Then the regression test added in #3707 fails.

Repro here: https://github.com/lexe-app/rust-lightning/tree/max/repro-max-path-count-limit

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions