mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-08 23:01:53 +02:00
htlcswitch: remove source hop check
This is already checked in EligibleToForward()
This commit is contained in:
@@ -1036,13 +1036,7 @@ func (s *Switch) handlePacketForward(packet *htlcPacket) error {
|
|||||||
for _, link := range interfaceLinks {
|
for _, link := range interfaceLinks {
|
||||||
// We'll skip any links that aren't yet eligible for
|
// We'll skip any links that aren't yet eligible for
|
||||||
// forwarding.
|
// forwarding.
|
||||||
switch {
|
if !link.EligibleToForward() {
|
||||||
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:
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user