chancloser: account for aux close outputs in initial coop close fee baseline#10969
chancloser: account for aux close outputs in initial coop close fee baseline#10969darioAnongba wants to merge 1 commit into
Conversation
🔴 PR Severity: CRITICAL
🔴 Critical (1 file)
🟢 Low (2 files)
AnalysisThe core production change is in No override labels were present, so this classification is based purely on file-path rules. To override, add a |
94932a9 to
5f7afc5
Compare
Problem
Custom channel coop closes can fail with:
unable to process close msg: insufficient fee.Root cause
For taproot/custom channels,
ChanClosercomputed the initial coop close fee (idealFeeSat) from only local+remote outputs, but the final close tx can include auxiliary extra outputs.That mismatch can underprice the first accepted close offer (notably in taproot fast-close), causing mempool rejection and peer disconnect.
Fix
Extend coop close fee weight calculation to include optional extra outputs.