lnwire: remove the Validate method from the Message interface
This commit revues the Validate method from the Message interface as the method is no longer used and is a relic from an older version of the codebase.
This commit is contained in:
21 files changed
-283
No files matched your search
@@ -108,16 +108,3 @@ func (c *Error) MaxPayloadLength(uint32) uint32 {
|
||||
// 32 + 2 + 655326
|
||||
return 65536
|
||||
}
|
||||
|
||||
// Validate performs any necessary sanity checks to ensure all fields present
|
||||
// on the Error are valid.
|
||||
//
|
||||
// This is part of the lnwire.Message interface.
|
||||
func (c *Error) Validate() error {
|
||||
if len(c.Data) > math.MaxUint16 {
|
||||
return fmt.Errorf("problem string length too long")
|
||||
}
|
||||
|
||||
// We're good!
|
||||
return nil
|
||||
}
|
||||
Reference in new issue
Block a user