Commit 7cbcf4f
Simplify contribution pop in reset_pending_splice_state
The was_negotiated check is unnecessary because reset_pending_splice_state
only runs when funding_negotiation is present, meaning
on_tx_signatures_exchange hasn't been called yet. Since the feerate is
only recorded in last_funding_feerate_sat_per_1000_weight during
on_tx_signatures_exchange, the current round's feerate can never match
it. So the contribution can always be unconditionally popped.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent e9510ad commit 7cbcf4f
1 file changed
Lines changed: 13 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7276 | 7276 | | |
7277 | 7277 | | |
7278 | 7278 | | |
7279 | | - | |
7280 | | - | |
7281 | | - | |
7282 | | - | |
7283 | | - | |
7284 | | - | |
7285 | | - | |
7286 | | - | |
| 7279 | + | |
| 7280 | + | |
| 7281 | + | |
| 7282 | + | |
| 7283 | + | |
| 7284 | + | |
| 7285 | + | |
| 7286 | + | |
| 7287 | + | |
7287 | 7288 | | |
7288 | | - | |
7289 | | - | |
7290 | | - | |
7291 | | - | |
7292 | | - | |
| 7289 | + | |
| 7290 | + | |
| 7291 | + | |
| 7292 | + | |
7293 | 7293 | | |
7294 | 7294 | | |
7295 | 7295 | | |
| |||
0 commit comments