From 44e97ee72f1e8612979bd0591313306e8691d37e Mon Sep 17 00:00:00 2001 From: Wilmer Paulino Date: Mon, 9 Jul 2018 18:11:53 -0700 Subject: [PATCH] htlcswitch: remove no longer needed destNode field in htlcPacket --- htlcswitch/packet.go | 4 ---- htlcswitch/switch.go | 1 - 2 files changed, 5 deletions(-) diff --git a/htlcswitch/packet.go b/htlcswitch/packet.go index b6bff471..41e364a9 100644 --- a/htlcswitch/packet.go +++ b/htlcswitch/packet.go @@ -8,10 +8,6 @@ import ( // htlcPacket is a wrapper around htlc lnwire update, which adds additional // information which is needed by this package. type htlcPacket struct { - // destNode is the first-hop destination of a local created HTLC add - // message. - destNode [33]byte - // incomingChanID is the ID of the channel that we have received an incoming // HTLC on. incomingChanID lnwire.ShortChannelID diff --git a/htlcswitch/switch.go b/htlcswitch/switch.go index 8c7f86f5..4a547e59 100644 --- a/htlcswitch/switch.go +++ b/htlcswitch/switch.go @@ -371,7 +371,6 @@ func (s *Switch) SendHTLC(firstHop lnwire.ShortChannelID, incomingChanID: sourceHop, incomingHTLCID: paymentID, outgoingChanID: firstHop, - destNode: nextNode, htlc: htlc, }