Commit 8ba5e9b
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 3d04483 commit 8ba5e9b
1 file changed
Lines changed: 13 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6977 | 6977 | | |
6978 | 6978 | | |
6979 | 6979 | | |
6980 | | - | |
6981 | | - | |
6982 | | - | |
6983 | | - | |
6984 | | - | |
6985 | | - | |
6986 | | - | |
6987 | | - | |
| 6980 | + | |
| 6981 | + | |
| 6982 | + | |
| 6983 | + | |
| 6984 | + | |
| 6985 | + | |
| 6986 | + | |
| 6987 | + | |
| 6988 | + | |
6988 | 6989 | | |
6989 | | - | |
6990 | | - | |
6991 | | - | |
6992 | | - | |
6993 | | - | |
| 6990 | + | |
| 6991 | + | |
| 6992 | + | |
| 6993 | + | |
6994 | 6994 | | |
6995 | 6995 | | |
6996 | 6996 | | |
| |||
0 commit comments