mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
routing/test: add channel id for final hop in clear route
Add the missing channel field to the final hop in our clear text route test case. Note that this is the channel of the hop. With the addition of stricter validation, we'll need this so that the penultimate hop has a non-zero next channel ID.
This commit is contained in:
parent
2fee3f6efa
commit
1bb48178d7
@ -182,21 +182,22 @@ func TestPayloadSize(t *testing.T) {
|
||||
hops := []*Hop{
|
||||
{
|
||||
PubKeyBytes: testPubKeyBytes,
|
||||
AmtToForward: 1000,
|
||||
AmtToForward: 2000,
|
||||
OutgoingTimeLock: 600000,
|
||||
ChannelID: 3432483437438,
|
||||
LegacyPayload: true,
|
||||
},
|
||||
{
|
||||
PubKeyBytes: testPubKeyBytes,
|
||||
AmtToForward: 1200,
|
||||
AmtToForward: 1500,
|
||||
OutgoingTimeLock: 700000,
|
||||
ChannelID: 63584534844,
|
||||
},
|
||||
{
|
||||
PubKeyBytes: testPubKeyBytes,
|
||||
AmtToForward: 1200,
|
||||
AmtToForward: 1000,
|
||||
OutgoingTimeLock: 700000,
|
||||
ChannelID: 51784534844,
|
||||
MPP: record.NewMPP(500, [32]byte{}),
|
||||
AMP: record.NewAMP(
|
||||
[32]byte{}, [32]byte{}, 8,
|
||||
|
Loading…
Reference in New Issue
Block a user