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
2021-07-14 11:17:08 -04:00
parent 07fa98fca5
commit 9cea8741b1
31 changed files with 37 additions and 180 deletions

View File

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