Commit 184efad
committed
Don't generate a commitment if we cannot afford a holding cell feerate
While an `update_fee` is in the holding cell, it is possible though
unlikely for HTLCs to get added to the commitment transaction such that
when we release the holding cell, we can no longer afford this new
feerate.
In that case, we previously would drop the fee update, but still send a
commitment (at the old feerate), which is a break of the specification.
We now stop generating this lonely commitment when the fee update gets
dropped upon release from the holding cell.1 parent 6133a6c commit 184efad
1 file changed
+3
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6275 | 6275 | | |
6276 | 6276 | | |
6277 | 6277 | | |
6278 | | - | |
| 6278 | + | |
| 6279 | + | |
| 6280 | + | |
6279 | 6281 | | |
6280 | 6282 | | |
6281 | | - | |
6282 | | - | |
6283 | | - | |
6284 | | - | |
6285 | | - | |
6286 | 6283 | | |
6287 | 6284 | | |
6288 | 6285 | | |
| |||
0 commit comments