Merge pull request #5280 from champo/interceptor_dont_leak_htlcs

htlcswitch: set sourceRef when resolving packets through interceptor
This commit is contained in:
Olaoluwa Osuntokun
2021-07-01 17:35:26 -07:00
committed by GitHub
2 changed files with 46 additions and 0 deletions

View File

@@ -179,6 +179,7 @@ func (f *interceptedForward) resolve(message lnwire.Message) error {
circuit: f.packet.circuit,
htlc: message,
obfuscator: f.packet.obfuscator,
sourceRef: f.packet.sourceRef,
}
return f.htlcSwitch.mailOrchestrator.Deliver(pkt.incomingChanID, pkt)
}