fuzz/lnwire: minor touch-ups, remove MaxPayloadLength

This commit makes the fuzz/lnwire tests build and run without
crashing.
This commit is contained in:
eugene committed 2021-08-11 16:59:16 -04:00
1 parent 07fa98fca5
commit 9cea8741b1
31 files changed
+37 -180

No files matched your search

+1 -5
View File
@@ -11,10 +11,6 @@ func Fuzz_update_fail_htlc(data []byte) int {
// Prefix with MsgUpdateFailHTLC.
data = prefixWithMsgType(data, lnwire.MsgUpdateFailHTLC)
// Create an empty message so that the FuzzHarness func can check
// if the max payload constraint is violated.
emptyMsg := lnwire.UpdateFailHTLC{}
// Pass the message into our general fuzz harness for wire messages!
return harness(data, &emptyMsg)
return harness(data)
}