mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-04 18:13:33 +02:00
tlv: allow tlv streams to use large records in non-p2p setting
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user