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:
13 files changed
+429
-212
No files matched your search
@@ -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