Commit 81722ca
committed
Handle new event processing logic when enqueuing forward event
This was a regression resulting from f2453b7 since we now process events
in a loop until there aren't any left. Processing events is done in
batches and they are not removed until we're done processing each batch.
Since handling a `PendingHTLCsForwardable` event will call back into the
`ChannelManager`, we'll still see the original forwarding event not
removed. Phantom payments will need an additional forwarding event
before being claimed to make them look real by taking more time.1 parent 86fd9e7 commit 81722ca
File tree
3 files changed
+53
-30
lines changed- lightning-invoice/src
- lightning/src/ln
3 files changed
+53
-30
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
792 | 792 | | |
793 | 793 | | |
794 | 794 | | |
| 795 | + | |
795 | 796 | | |
796 | 797 | | |
797 | 798 | | |
798 | 799 | | |
799 | 800 | | |
800 | | - | |
| 801 | + | |
801 | 802 | | |
802 | 803 | | |
803 | 804 | | |
| |||
1357 | 1358 | | |
1358 | 1359 | | |
1359 | 1360 | | |
1360 | | - | |
1361 | | - | |
1362 | | - | |
1363 | | - | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
1364 | 1371 | | |
1365 | 1372 | | |
1366 | | - | |
| 1373 | + | |
| 1374 | + | |
1367 | 1375 | | |
1368 | 1376 | | |
1369 | 1377 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1978 | 1978 | | |
1979 | 1979 | | |
1980 | 1980 | | |
| 1981 | + | |
| 1982 | + | |
1981 | 1983 | | |
1982 | 1984 | | |
1983 | 1985 | | |
| |||
5686 | 5688 | | |
5687 | 5689 | | |
5688 | 5690 | | |
5689 | | - | |
5690 | 5691 | | |
5691 | 5692 | | |
5692 | | - | |
5693 | | - | |
5694 | | - | |
5695 | | - | |
5696 | | - | |
5697 | | - | |
5698 | | - | |
| 5693 | + | |
| 5694 | + | |
| 5695 | + | |
| 5696 | + | |
| 5697 | + | |
| 5698 | + | |
| 5699 | + | |
| 5700 | + | |
| 5701 | + | |
| 5702 | + | |
| 5703 | + | |
| 5704 | + | |
| 5705 | + | |
5699 | 5706 | | |
5700 | 5707 | | |
5701 | 5708 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1806 | 1806 | | |
1807 | 1807 | | |
1808 | 1808 | | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
| 1815 | + | |
| 1816 | + | |
| 1817 | + | |
| 1818 | + | |
| 1819 | + | |
| 1820 | + | |
| 1821 | + | |
| 1822 | + | |
| 1823 | + | |
| 1824 | + | |
| 1825 | + | |
| 1826 | + | |
| 1827 | + | |
| 1828 | + | |
| 1829 | + | |
| 1830 | + | |
1809 | 1831 | | |
1810 | 1832 | | |
1811 | 1833 | | |
| |||
1815 | 1837 | | |
1816 | 1838 | | |
1817 | 1839 | | |
1818 | | - | |
1819 | | - | |
1820 | | - | |
1821 | | - | |
1822 | | - | |
1823 | | - | |
1824 | | - | |
1825 | | - | |
1826 | | - | |
1827 | | - | |
1828 | | - | |
1829 | | - | |
1830 | | - | |
1831 | | - | |
1832 | | - | |
1833 | | - | |
| 1840 | + | |
| 1841 | + | |
1834 | 1842 | | |
1835 | 1843 | | |
1836 | 1844 | | |
| |||
0 commit comments