Commit 4d9c2ed
committed
Add hold_htlc param to internal Channel APIs
As part of supporting sending payments as an often-offline sender, the sender
needs to be able to set a flag in their update_add_htlc message indicating that
the HTLC should be held until receipt of a release_held_htlc onion message from
the often-offline payment recipient.
We don't yet ever set this flag, but lay the groundwork by including a
parameter for it in internal channel send_htlc APIs, including serializing the
field when the parameter is set.
See-also BOLTs PR 9891 parent 94d3167 commit 4d9c2ed
2 files changed
+10
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8048 | 8048 | | |
8049 | 8049 | | |
8050 | 8050 | | |
8051 | | - | |
| 8051 | + | |
8052 | 8052 | | |
8053 | 8053 | | |
8054 | 8054 | | |
| |||
8060 | 8060 | | |
8061 | 8061 | | |
8062 | 8062 | | |
| 8063 | + | |
8063 | 8064 | | |
8064 | 8065 | | |
8065 | 8066 | | |
| |||
12022 | 12023 | | |
12023 | 12024 | | |
12024 | 12025 | | |
| 12026 | + | |
| 12027 | + | |
12025 | 12028 | | |
12026 | 12029 | | |
12027 | 12030 | | |
| |||
12052 | 12055 | | |
12053 | 12056 | | |
12054 | 12057 | | |
12055 | | - | |
| 12058 | + | |
12056 | 12059 | | |
12057 | 12060 | | |
12058 | 12061 | | |
| |||
12134 | 12137 | | |
12135 | 12138 | | |
12136 | 12139 | | |
12137 | | - | |
| 12140 | + | |
12138 | 12141 | | |
12139 | 12142 | | |
12140 | 12143 | | |
| |||
12156 | 12159 | | |
12157 | 12160 | | |
12158 | 12161 | | |
12159 | | - | |
| 12162 | + | |
12160 | 12163 | | |
12161 | 12164 | | |
12162 | 12165 | | |
| |||
12391 | 12394 | | |
12392 | 12395 | | |
12393 | 12396 | | |
12394 | | - | |
| 12397 | + | |
12395 | 12398 | | |
12396 | 12399 | | |
12397 | 12400 | | |
| |||
12406 | 12409 | | |
12407 | 12410 | | |
12408 | 12411 | | |
| 12412 | + | |
12409 | 12413 | | |
12410 | 12414 | | |
12411 | 12415 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5098 | 5098 | | |
5099 | 5099 | | |
5100 | 5100 | | |
| 5101 | + | |
5101 | 5102 | | |
5102 | 5103 | | |
5103 | 5104 | | |
| |||
0 commit comments