lnwire: add new TestMessage interface for property tests
In this commit, we add a new `TestMessage` interface for use in property tests. With this, we'll be able to generate a random instance of a given message, using the rapid byte stream. This can also eventually be useful for fuzzing.
This commit is contained in:
25 files changed
+2090
-32
No files matched your search
@@ -65,6 +65,11 @@ const (
|
||||
MsgChannelAnnouncement2 = 267
|
||||
MsgChannelUpdate2 = 271
|
||||
MsgKickoffSig = 777
|
||||
|
||||
// MsgEnd defines the end of the official message range of the protocol.
|
||||
// If a new message is added beyond this message, then this should be
|
||||
// modified.
|
||||
MsgEnd = 778
|
||||
)
|
||||
|
||||
// IsChannelUpdate is a filter function that discerns channel update messages
|
||||
|
||||
Reference in new issue
Block a user