Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pay: Compute the number of HTLCs needed after presplit correctly
We were counting the attempts including the root payment, which resulted in an off-by-one error with the `test_pay_low_max_htlcs` test. Counting the children of the root payment after the presplitter had a go is the correct way to do it, since at that time we only have one level in the tree, no need to recurse and potentially count ourselves.
- Loading branch information