mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-01 02:02:10 +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.
|
// This is part of the lnwire.Message interface.
|
||||||
func (msg *Init) MaxPayloadLength(uint32) uint32 {
|
func (msg *Init) MaxPayloadLength(uint32) uint32 {
|
||||||
return 2 + maxAllowedSize + 2 + maxAllowedSize
|
return 2 + 2 + maxAllowedSize + 2 + maxAllowedSize
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user