Commit ccb0443
committed
Send
While nodes are generally supposed to validate commitment
transactions after the `commitent_signed` and not while HTLCs are
being added/removed, we don't. This can make a commitment update
where we use HTLC balance claimed with a fulfill to send new HTLCs,
which is perfectly valid, being rejected. While we shouldn't
currently generate any such commitments, we might want to in the
future, and on the off-chance that we do, or where such a
commitment would result in a dust threshold overrun, its always
safter to add new HTLCs to a commitment only after we've removed
any HTLCs we're going to remove, which we do here.update_add_htlc messages after HTLC removal messages1 parent 07bf08b commit ccb0443
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3053 | 3053 | | |
3054 | 3054 | | |
3055 | 3055 | | |
3056 | | - | |
3057 | | - | |
3058 | | - | |
3059 | 3056 | | |
3060 | 3057 | | |
3061 | 3058 | | |
| |||
3065 | 3062 | | |
3066 | 3063 | | |
3067 | 3064 | | |
| 3065 | + | |
| 3066 | + | |
| 3067 | + | |
3068 | 3068 | | |
3069 | 3069 | | |
3070 | 3070 | | |
| |||
0 commit comments