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

This commit is contained in:
Andrey Samokhvalov
2017-02-17 17:28:11 +03:00
committed by Olaoluwa Osuntokun
parent 4d7ca825d4
commit ae15a193e2
7 changed files with 125 additions and 103 deletions

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)
}