itest: dedup interceptor packets

Aded a test for the dedup intercepted packets of htlc interceptor.
This commit is contained in:
Roei Erez
2021-10-03 17:42:50 +03:00
committed by Olaoluwa Osuntokun
parent 1f1b33bf85
commit fe44aedb25
3 changed files with 170 additions and 5 deletions

View File

@@ -150,7 +150,7 @@ func (r *forwardInterceptor) holdAndForwardToClient(
htlc := forward.Packet()
inKey := htlc.IncomingCircuit
// ignore already held htlcs.
// Ignore already held htlcs.
if _, ok := r.holdForwards[inKey]; ok {
return nil
}