From b0870ea2ed266bc7bf3cc1ad992722a61e454e56 Mon Sep 17 00:00:00 2001 From: Carla Kirk-Cohen Date: Wed, 1 Nov 2023 15:20:04 -0400 Subject: [PATCH] htlcswitch/test: add encrypted data to blinded intermediate hop Blinding points will always be accompanied by encrypted data, so update the test to more accurately represent reality. --- htlcswitch/hop/payload_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htlcswitch/hop/payload_test.go b/htlcswitch/hop/payload_test.go index 6913f11c6..234fca2a9 100644 --- a/htlcswitch/hop/payload_test.go +++ b/htlcswitch/hop/payload_test.go @@ -247,6 +247,8 @@ var decodePayloadTests = []decodePayloadTest{ 0x02, 0x00, // cltv 0x04, 0x00, + // encrypted data + 0x0a, 0x03, 0x03, 0x02, 0x01, // blinding point (type / length) 0x0c, 0x21, }, @@ -254,6 +256,7 @@ var decodePayloadTests = []decodePayloadTest{ testPubKey.SerializeCompressed()..., ), shouldHaveBlinding: true, + shouldHaveEncData: true, }, { name: "final hop with mpp",