From 1bb48178d7e8f9c2488cf1c475f2558cc4a757c0 Mon Sep 17 00:00:00 2001 From: Carla Kirk-Cohen Date: Wed, 1 Nov 2023 14:01:54 -0400 Subject: [PATCH] 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. --- routing/route/route_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/routing/route/route_test.go b/routing/route/route_test.go index 4524b0c6e..252ffba84 100644 --- a/routing/route/route_test.go +++ b/routing/route/route_test.go @@ -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,