Skip to content

Commit d09d514

Browse files
committed
lnwire: include init prefix in MaxPayloadLength calculation
1 parent 7a65be7 commit d09d514

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lnwire/init_message.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,5 @@ func (msg *Init) MsgType() MessageType {
6363
//
6464
// This is part of the lnwire.Message interface.
6565
func (msg *Init) MaxPayloadLength(uint32) uint32 {
66-
return 2 + maxAllowedSize + 2 + maxAllowedSize
66+
return 2 + 2 + maxAllowedSize + 2 + maxAllowedSize
6767
}

0 commit comments

Comments
 (0)