htlcswitch/hop: always accept even custom tlv records

This commit prepares for sending and receiving of application-specific
custom tlv fields.
This commit is contained in:
Joost Jager committed 2019-11-12 16:18:27 +01:00
1 parent 048971b40b
commit 78ecc3d24b
2 files changed
+16 -1

No files matched your search

+6
View File
@@ -130,6 +130,12 @@ var decodePayloadTests = []decodePayloadTest{
FinalHop: false,
},
},
{
name: "required type in custom range",
payload: []byte{0x02, 0x00, 0x04, 0x00,
0xfe, 0x00, 0x01, 0x00, 0x00, 0x00,
},
},
{
name: "valid intermediate hop",
payload: []byte{0x02, 0x00, 0x04, 0x00, 0x06, 0x08, 0x01, 0x00,