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:
Carla Kirk-Cohen 2023-11-01 14:01:54 -04:00
parent 2fee3f6efa
commit 1bb48178d7
No known key found for this signature in database
GPG Key ID: 4CA7FE54A6213C91

View File

@ -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,