lnwire: patch test and fix extra data in DynCommit

This commit is contained in:
yyforyongyu
2025-07-02 20:57:11 +08:00
parent e6ab37305c
commit 91797ad1d2
3 changed files with 148 additions and 27 deletions

View File

@@ -1025,10 +1025,7 @@ func (dc *DynCommit) RandTestMessage(t *rapid.T) Message {
DynAck: *da,
}
extraData := RandExtraOpaqueData(t, ignoreRecords)
if len(extraData) > 0 {
msg.ExtraData = extraData
}
msg.ExtraData = RandExtraOpaqueData(t, ignoreRecords)
return msg
}