mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2025-12-18 14:44:22 +01:00
lnwire+features: transition to the user friendly list of features
This commit is contained in:
committed by
Olaoluwa Osuntokun
parent
4d7ca825d4
commit
ae15a193e2
@@ -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