mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-28 14:40:51 +02:00
lnwire: add ExtraOpaqueData
helper functions and methods
Introduces a couple of new helper functions for both the ExtraOpaqueData and CustomRecords types along with new methods on the ExtraOpaqueData.
This commit is contained in:
@@ -144,10 +144,8 @@ func TestCustomRecordsExtendRecordProducers(t *testing.T) {
|
||||
for _, tc := range testCases {
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
nonCustomRecords := tlv.MapToRecords(tc.existingTypes)
|
||||
nonCustomProducers := fn.Map(
|
||||
func(r tlv.Record) tlv.RecordProducer {
|
||||
return &recordProducer{r}
|
||||
}, nonCustomRecords,
|
||||
nonCustomProducers := RecordsAsProducers(
|
||||
nonCustomRecords,
|
||||
)
|
||||
|
||||
combined, err := tc.customRecords.ExtendRecordProducers(
|
||||
|
Reference in New Issue
Block a user