mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-27 22:21:18 +02:00
lnwire: add type CustomRecords
This commit introduces the `CustomRecords` type in the `lnwire` package, designed to hold arbitrary byte slices. Each entry in this map can associate with TLV type values that are greater than or equal to 65536.
This commit is contained in:
@@ -86,14 +86,6 @@ func TestExtraOpaqueDataEncodeDecode(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
type recordProducer struct {
|
||||
record tlv.Record
|
||||
}
|
||||
|
||||
func (r *recordProducer) Record() tlv.Record {
|
||||
return r.record
|
||||
}
|
||||
|
||||
// TestExtraOpaqueDataPackUnpackRecords tests that we're able to pack a set of
|
||||
// tlv.Records into a stream, and unpack them on the other side to obtain the
|
||||
// same set of records.
|
||||
|
Reference in New Issue
Block a user