lnwire: add method ParseAndExtractExtraData

Similar to `ParseAndExtractCustomRecords`, we now add this helper method
to make sure the extra data is parsed correctly.
This commit is contained in:
yyforyongyu committed 2025-07-11 04:11:30 +03:00
1 parent e94ca84449
commit 5961f7a1bd
3 files changed
+56 -35

No files matched your search

+1 -4
View File
@@ -881,10 +881,7 @@ func (dp *DynPropose) RandTestMessage(t *rapid.T) Message {
}
}
extraData := RandExtraOpaqueData(t, ignoreRecords)
if len(extraData) > 0 {
msg.ExtraData = extraData
}
msg.ExtraData = RandExtraOpaqueData(t, ignoreRecords)
return msg
}