mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-28 14:40:51 +02:00
lnwire: include init prefix in MaxPayloadLength calculation
This commit is contained in:
@@ -63,5 +63,5 @@ func (msg *Init) MsgType() MessageType {
|
||||
//
|
||||
// This is part of the lnwire.Message interface.
|
||||
func (msg *Init) MaxPayloadLength(uint32) uint32 {
|
||||
return 2 + maxAllowedSize + 2 + maxAllowedSize
|
||||
return 2 + 2 + maxAllowedSize + 2 + maxAllowedSize
|
||||
}
|
||||
|
Reference in New Issue
Block a user