Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
MaxFangX opened this issue Apr 10, 2025 · 0 comments

Comments

@MaxFangX
Copy link
Contributor

MaxFangX commented Apr 10, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant