lnwire+features: transition to the user friendly list of features

This commit is contained in:
Andrey Samokhvalov authored and Olaoluwa Osuntokun committed 2017-02-21 01:25:05 -08:00
1 parent 4d7ca825d4
commit ae15a193e2
7 files changed
+125 -103

No files matched your search

+2 -2
View File
@@ -86,12 +86,12 @@ func (msg *Init) MaxPayloadLength(uint32) uint32 {
//
// This is part of the lnwire.Message interface.
func (msg *Init) Validate() error {
if msg.GlobalFeatures.SerializedSize() > maxAllowedSize {
if msg.GlobalFeatures.serializedSize() > maxAllowedSize {
return errors.Errorf("global feature vector exceed max allowed "+
"size %v", maxAllowedSize)
}
if msg.LocalFeatures.SerializedSize() > maxAllowedSize {
if msg.LocalFeatures.serializedSize() > maxAllowedSize {
return errors.Errorf("local feature vector exceed max allowed "+
"size %v", maxAllowedSize)
}