Merge pull request #5901 from Roasbeef/dedup-interceptor
Dedup interceptor
This commit is contained in:
4 files changed
+178
-4
No files matched your search
@@ -150,6 +150,11 @@ func (r *forwardInterceptor) holdAndForwardToClient(
|
||||
htlc := forward.Packet()
|
||||
inKey := htlc.IncomingCircuit
|
||||
|
||||
// Ignore already held htlcs.
|
||||
if _, ok := r.holdForwards[inKey]; ok {
|
||||
return nil
|
||||
}
|
||||
|
||||
// First hold the forward, then send to client.
|
||||
r.holdForwards[inKey] = forward
|
||||
interceptionRequest := &ForwardHtlcInterceptRequest{
|
||||
|
||||
Reference in new issue
Block a user