mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-30 18:13:35 +02:00
htlcswitch: auto-fail held htlcs
Make the interceptable switch aware of htlc expiry and fail back htlcs in-time to prevent the counterparty from force-closing the channel.
This commit is contained in:
@@ -90,6 +90,7 @@ func (r *forwardInterceptor) onIntercept(
|
||||
IncomingExpiry: htlc.IncomingExpiry,
|
||||
CustomRecords: htlc.CustomRecords,
|
||||
OnionBlob: htlc.OnionBlob[:],
|
||||
AutoFailHeight: htlc.AutoFailHeight,
|
||||
}
|
||||
|
||||
return r.stream.Send(interceptionRequest)
|
||||
|
Reference in New Issue
Block a user