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:
Olaoluwa Osuntokun committed 2017-04-19 15:03:51 -07:00
1 parent 920fcf3392
commit c8d978261b
21 files changed
-283

No files matched your search

-14
View File
@@ -85,17 +85,3 @@ func (c *CloseRequest) MaxPayloadLength(pver uint32) uint32 {
// 36 + 73 + 8
return 117
}
// Validate performs any necessary sanity checks to ensure all fields present
// on the CloseRequest are valid.
//
// This is part of the lnwire.Message interface.
func (c *CloseRequest) Validate() error {
// Fee must be greater than 0.
if c.Fee < 0 {
return fmt.Errorf("fee must be greater than zero")
}
// We're good!
return nil
}