Commit 50517ab
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 f76ad4d commit 50517ab
2 files changed
Lines changed: 47 additions & 0 deletions
| 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 | | |
| |||
14855 | 14881 | | |
14856 | 14882 | | |
14857 | 14883 | | |
| 14884 | + | |
| 14885 | + | |
| 14886 | + | |
| 14887 | + | |
| 14888 | + | |
| 14889 | + | |
| 14890 | + | |
14858 | 14891 | | |
14859 | 14892 | | |
14860 | 14893 | | |
| |||
| 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