fuzz/lnwire: minor touch-ups, remove MaxPayloadLength
This commit makes the fuzz/lnwire tests build and run without crashing.
This commit is contained in:
31 files changed
+37
-180
No files matched your search
@@ -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)
|
||||
}
|
||||
Reference in new issue
Block a user