Commit 6157ac5
fix: deduplicate healing payments by counterparty
When multiple channels exist with the same peer, the router may pick
the same channel for both payments — leaving the other unhealed. Fix:
send one payment per unique counterparty (not per channel) and dedup
in the retry loop. Each retry may route through a different channel as
outbound capacity shifts from previous attempts.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 81cd590 commit 6157ac5
1 file changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
728 | 728 | | |
729 | 729 | | |
730 | 730 | | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
731 | 735 | | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
732 | 739 | | |
733 | 740 | | |
734 | 741 | | |
| |||
800 | 807 | | |
801 | 808 | | |
802 | 809 | | |
803 | | - | |
| 810 | + | |
| 811 | + | |
804 | 812 | | |
805 | 813 | | |
| 814 | + | |
806 | 815 | | |
807 | 816 | | |
808 | 817 | | |
809 | 818 | | |
810 | 819 | | |
811 | 820 | | |
812 | | - | |
| 821 | + | |
813 | 822 | | |
814 | 823 | | |
815 | 824 | | |
| |||
0 commit comments