Commit 086491b
committed
Remove unnecessary
Previously, I had a misunderstood in what event retrying payments is
safe. It turns out that it's indeed safe to retry a payment as soon as
we receive `LdkEvent::PaymentFailed`.
Therefore, we can here now only refuse to send duplicate payments if our previous status is
`Succeeded` or `Pending`, which renders the additional distinction
between `Failed` and `SendingFailed` superfluous. Accordingly, we remove
this `PaymentStatus` variant.PaymentStatus::SendingFailed
1 parent 56fe49c commit 086491b
3 files changed
+15
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
132 | 131 | | |
133 | 132 | | |
134 | 133 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1518 | 1518 | | |
1519 | 1519 | | |
1520 | 1520 | | |
1521 | | - | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
1522 | 1524 | | |
1523 | 1525 | | |
1524 | 1526 | | |
| |||
1565 | 1567 | | |
1566 | 1568 | | |
1567 | 1569 | | |
1568 | | - | |
| 1570 | + | |
1569 | 1571 | | |
1570 | 1572 | | |
1571 | 1573 | | |
| |||
1601 | 1603 | | |
1602 | 1604 | | |
1603 | 1605 | | |
1604 | | - | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
1605 | 1609 | | |
1606 | 1610 | | |
1607 | 1611 | | |
| |||
1668 | 1672 | | |
1669 | 1673 | | |
1670 | 1674 | | |
1671 | | - | |
| 1675 | + | |
1672 | 1676 | | |
1673 | 1677 | | |
1674 | 1678 | | |
| |||
1692 | 1696 | | |
1693 | 1697 | | |
1694 | 1698 | | |
1695 | | - | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
1696 | 1702 | | |
1697 | 1703 | | |
1698 | 1704 | | |
| |||
1741 | 1747 | | |
1742 | 1748 | | |
1743 | 1749 | | |
1744 | | - | |
| 1750 | + | |
1745 | 1751 | | |
1746 | 1752 | | |
1747 | 1753 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
62 | 60 | | |
63 | 61 | | |
64 | | - | |
| 62 | + | |
65 | 63 | | |
66 | 64 | | |
67 | 65 | | |
68 | 66 | | |
69 | 67 | | |
70 | | - | |
71 | | - | |
72 | | - | |
| 68 | + | |
| 69 | + | |
73 | 70 | | |
74 | 71 | | |
75 | 72 | | |
| |||
0 commit comments