lnwire: include init prefix in MaxPayloadLength calculation

This commit is contained in:
nsa 2019-02-07 13:19:54 -05:00
parent 7a65be7f14
commit d09d514858

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