lnd/htlcswitch
yyforyongyu 944f16255a
htlcswitch: handle nil circuit properly when settling
We have two sources which can call `handlePacketSettle`, either through
the link's `<-s.htlcPlex`, or the `<-s.resolutionMsgs`, which means the
`closeCircuit` could be call twice. Previously we already caught this
case inside `closeCircuit`, in that we would return a nil circuit upon
seeing `ErrUnknownCircuit`, indicating the circuit was removed. However,
we still need to account the case when the circuit is the process of
being closed, which is now fixed as we will ignore when seeing
`ErrCircuitClosing`.
2024-12-16 15:58:23 +08:00
..
2024-12-02 09:14:21 +02:00
2024-12-04 13:19:00 -07:00
2024-12-04 13:19:00 -07:00
2024-12-04 13:19:00 -07:00
2024-12-04 13:19:00 -07:00