mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2025-12-18 06:34:27 +01:00
fuzz/lnwire: minor touch-ups, remove MaxPayloadLength
This commit makes the fuzz/lnwire tests build and run without crashing.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user