mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-10 23:22:48 +02:00
routing: assume TLV onion during path finding
This commit is contained in:
committed by
Oliver Gugger
parent
e8fddd3935
commit
6ab5ed1b7f
@@ -27,24 +27,12 @@ func TestIntermediatePayloadSize(t *testing.T) {
|
||||
nextHop uint64
|
||||
edge AdditionalEdge
|
||||
}{
|
||||
{
|
||||
name: "Legacy payload private edge",
|
||||
hop: route.Hop{
|
||||
AmtToForward: 1000,
|
||||
OutgoingTimeLock: 600000,
|
||||
ChannelID: 3432483437438,
|
||||
LegacyPayload: true,
|
||||
},
|
||||
nextHop: 1,
|
||||
edge: &PrivateEdge{},
|
||||
},
|
||||
{
|
||||
name: "Tlv payload private edge",
|
||||
hop: route.Hop{
|
||||
AmtToForward: 1000,
|
||||
OutgoingTimeLock: 600000,
|
||||
ChannelID: 3432483437438,
|
||||
LegacyPayload: false,
|
||||
},
|
||||
nextHop: 1,
|
||||
edge: &PrivateEdge{},
|
||||
@@ -86,7 +74,6 @@ func TestIntermediatePayloadSize(t *testing.T) {
|
||||
IntermediatePayloadSize(
|
||||
testCase.hop.AmtToForward,
|
||||
testCase.hop.OutgoingTimeLock,
|
||||
testCase.hop.LegacyPayload,
|
||||
testCase.nextHop,
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user