Commit 1dd3988
committed
Add enable_htlc_hold cfg flag + fail hold htlcs
As part of supporting sending payments as an often-offline sender, the
often-offline sender's channel counterparty needs to advertise a feature bit
indicating that they support holding onto the sender's HTLC until they receive
a release_held_htlc onion message from the recipient indicating that they are
online and ready to receive the payment.
Here we add a config flag to turn on advertising this feature, and fail back
hold_htlcs if this config flag is not set.
See-also <lightning/bolts#989>1 parent 44d21c9 commit 1dd3988
2 files changed
+47
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6420 | 6420 | | |
6421 | 6421 | | |
6422 | 6422 | | |
| 6423 | + | |
| 6424 | + | |
| 6425 | + | |
| 6426 | + | |
| 6427 | + | |
| 6428 | + | |
| 6429 | + | |
| 6430 | + | |
| 6431 | + | |
| 6432 | + | |
| 6433 | + | |
| 6434 | + | |
| 6435 | + | |
| 6436 | + | |
| 6437 | + | |
| 6438 | + | |
| 6439 | + | |
| 6440 | + | |
| 6441 | + | |
| 6442 | + | |
| 6443 | + | |
| 6444 | + | |
| 6445 | + | |
| 6446 | + | |
| 6447 | + | |
| 6448 | + | |
6423 | 6449 | | |
6424 | 6450 | | |
6425 | 6451 | | |
| |||
14847 | 14873 | | |
14848 | 14874 | | |
14849 | 14875 | | |
| 14876 | + | |
| 14877 | + | |
| 14878 | + | |
| 14879 | + | |
| 14880 | + | |
| 14881 | + | |
| 14882 | + | |
14850 | 14883 | | |
14851 | 14884 | | |
14852 | 14885 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
935 | 935 | | |
936 | 936 | | |
937 | 937 | | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
938 | 950 | | |
939 | 951 | | |
940 | 952 | | |
| |||
949 | 961 | | |
950 | 962 | | |
951 | 963 | | |
| 964 | + | |
| 965 | + | |
952 | 966 | | |
953 | 967 | | |
954 | 968 | | |
| |||
0 commit comments