Commit 57a91f0
committed
Include payment hash in more early payment logs
If a user has issues with a payment, the most obvious thing they'll
do is check logs for the payment hash. Thus, we should ensure our
logs that show a payment's lifecycle include the payment hash and
are emitted (a) as soon as LDK learns of the payment, (b) once the
payment goes out to the peer (which is already reasonably covered
in the commitment transaction building logs) and (c) when the
payment ultimately is fulfilled or fails.
Here we improve our logs for both (a) and (c).1 parent ad2cd84 commit 57a91f0
File tree
3 files changed
+22
-5
lines changed- lightning/src/ln
3 files changed
+22
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2213 | 2213 | | |
2214 | 2214 | | |
2215 | 2215 | | |
| 2216 | + | |
| 2217 | + | |
2216 | 2218 | | |
2217 | 2219 | | |
2218 | 2220 | | |
| |||
5188 | 5190 | | |
5189 | 5191 | | |
5190 | 5192 | | |
5191 | | - | |
| 5193 | + | |
| 5194 | + | |
5192 | 5195 | | |
5193 | 5196 | | |
5194 | 5197 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3208 | 3208 | | |
3209 | 3209 | | |
3210 | 3210 | | |
3211 | | - | |
| 3211 | + | |
| 3212 | + | |
| 3213 | + | |
3212 | 3214 | | |
3213 | 3215 | | |
3214 | 3216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
722 | 722 | | |
723 | 723 | | |
724 | 724 | | |
| 725 | + | |
| 726 | + | |
725 | 727 | | |
726 | 728 | | |
727 | 729 | | |
| |||
730 | 732 | | |
731 | 733 | | |
732 | 734 | | |
733 | | - | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
734 | 740 | | |
735 | 741 | | |
736 | 742 | | |
737 | 743 | | |
738 | | - | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
739 | 749 | | |
740 | 750 | | |
741 | 751 | | |
742 | | - | |
| 752 | + | |
| 753 | + | |
743 | 754 | | |
744 | 755 | | |
745 | 756 | | |
| |||
1188 | 1199 | | |
1189 | 1200 | | |
1190 | 1201 | | |
| 1202 | + | |
1191 | 1203 | | |
1192 | 1204 | | |
1193 | 1205 | | |
| |||
0 commit comments