One of the recurring things we get asked for is "why was this channel closed?"
to which we usually just point to logs, that may not be present anymore due to
a restart. @ZmnSCPxj proposed adding a closure reason in [#4020] that'd
contain the cause of a channel closure (or more generally a state change) to
the listpeers result and to the channel_state_changed hook. I think this
could go a long way towards helping users perform cause analysis for any
unexpected closure.
Open Questions
One of the recurring things we get asked for is "why was this channel closed?"
to which we usually just point to logs, that may not be present anymore due to
a restart. @ZmnSCPxj proposed adding a
closurereason in [#4020] that'dcontain the cause of a channel closure (or more generally a state change) to
the
listpeersresult and to thechannel_state_changedhook. I think thiscould go a long way towards helping users perform cause analysis for any
unexpected closure.
Open Questions
unilateral close, feerate adjustment, HTLC addition / removal. Arguably
the latter two might be too detailed and cause a lot of overhead /
noise in the status listing.
we should create a single
chanenl_state_changetable that covers allpossible fields, and not multiple tables.
much overhead (feerate adjustments, HTLC operations, ...)