tlv: allow tlv streams to use large records in non-p2p setting

This commit is contained in:
eugene
2022-08-01 13:56:29 -04:00
parent 89ebd03ff8
commit 524058f39d
3 changed files with 89 additions and 17 deletions

View File

@@ -370,12 +370,6 @@ var tlvDecodingFailureTests = []struct {
bytes: []byte{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00},
expErr: tlv.ErrStreamNotCanonical,
},
{
name: "absurd record length",
bytes: []byte{0xfd, 0x01, 0x91, 0xfe, 0xff, 0xff, 0xff, 0xff},
expErr: tlv.ErrRecordTooLarge,
skipN2: true,
},
}
// TestTLVDecodingSuccess asserts that the TLV parser fails to decode invalid