htlcswitch: remove source hop check

This is already checked in EligibleToForward()
This commit is contained in:
Joost Jager 2019-09-27 16:29:53 +02:00
parent 5404348f51
commit cf98e99001
No known key found for this signature in database
GPG Key ID: A61B9D4C393C59C7

@ -1036,13 +1036,7 @@ func (s *Switch) handlePacketForward(packet *htlcPacket) error {
for _, link := range interfaceLinks {
// We'll skip any links that aren't yet eligible for
// forwarding.
switch {
case !link.EligibleToForward():
continue
// If the link doesn't yet have a source chan ID, then
// we'll skip it as well.
case link.ShortChanID() == hop.Source:
if !link.EligibleToForward() {
continue
}