mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-12 22:22:36 +02:00
htlcswitch/hop: move hop.Exit and hop.Source to hop pkg
This commit is contained in:
@ -1937,7 +1937,7 @@ func TestChannelLinkBandwidthConsistency(t *testing.T) {
|
||||
}
|
||||
addPkt := htlcPacket{
|
||||
htlc: htlc,
|
||||
incomingChanID: sourceHop,
|
||||
incomingChanID: hop.Source,
|
||||
incomingHTLCID: 0,
|
||||
obfuscator: NewMockObfuscator(),
|
||||
}
|
||||
@ -2017,7 +2017,7 @@ func TestChannelLinkBandwidthConsistency(t *testing.T) {
|
||||
}
|
||||
addPkt = htlcPacket{
|
||||
htlc: htlc,
|
||||
incomingChanID: sourceHop,
|
||||
incomingChanID: hop.Source,
|
||||
incomingHTLCID: 1,
|
||||
obfuscator: NewMockObfuscator(),
|
||||
}
|
||||
@ -2535,7 +2535,7 @@ func genAddsAndCircuits(numHtlcs int, htlc *lnwire.UpdateAddHTLC) (
|
||||
for i := 0; i < numHtlcs; i++ {
|
||||
addPkt := htlcPacket{
|
||||
htlc: htlc,
|
||||
incomingChanID: sourceHop,
|
||||
incomingChanID: hop.Source,
|
||||
incomingHTLCID: uint64(i),
|
||||
obfuscator: NewMockObfuscator(),
|
||||
}
|
||||
@ -4311,7 +4311,7 @@ func generateHtlcAndInvoice(t *testing.T,
|
||||
hops := []hop.ForwardingInfo{
|
||||
{
|
||||
Network: hop.BitcoinNetwork,
|
||||
NextHop: exitHop,
|
||||
NextHop: hop.Exit,
|
||||
AmountToForward: htlcAmt,
|
||||
OutgoingCTLV: uint32(htlcExpiry),
|
||||
},
|
||||
|
Reference in New Issue
Block a user