Commit 633c959
chanmon_consistency: tolerate drained splice tx in SplicePending handler
During settlement, the drain loop removes all transactions from
broadcasters unconditionally, but confirm_tx may reject a splice
transaction if its inputs are already spent. When a SplicePending
event then fires, the tx is neither in the broadcaster nor in
confirmed_txids, causing a panic.
Replace the .expect() with an if-let to gracefully skip splice
transactions that were already drained.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 720bce6 commit 633c959
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2043 | 2043 | | |
2044 | 2044 | | |
2045 | 2045 | | |
2046 | | - | |
| 2046 | + | |
2047 | 2047 | | |
2048 | 2048 | | |
2049 | | - | |
2050 | | - | |
2051 | | - | |
| 2049 | + | |
| 2050 | + | |
| 2051 | + | |
| 2052 | + | |
| 2053 | + | |
| 2054 | + | |
| 2055 | + | |
2052 | 2056 | | |
2053 | 2057 | | |
2054 | 2058 | | |
| |||
0 commit comments