lnwire+features: transition to the user friendly list of features
This commit is contained in:
1 parent
4d7ca825d4
commit
ae15a193e2
7 files changed
+125
-103
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user