mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-26 05:57:07 +01:00
htlcswitch/hop: move hop.Exit and hop.Source to hop pkg
This commit is contained in:
@@ -648,7 +648,7 @@ func generateHops(payAmt lnwire.MilliSatoshi, startingHeight uint32,
|
||||
for i := len(path) - 1; i >= 0; i-- {
|
||||
// If this is the last hop, then the next hop is the special
|
||||
// "exit node". Otherwise, we look to the "prior" hop.
|
||||
nextHop := exitHop
|
||||
nextHop := hop.Exit
|
||||
if i != len(path)-1 {
|
||||
nextHop = path[i+1].channel.ShortChanID()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user