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? # for a free GitHub account to open an issue and contact its maintainers and the community.

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

Already on GitHub? # 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

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

No branches or pull requests

1 participant