peer: use MaxMessagePayload instead of hard coding

This commit is contained in:
yyforyongyu committed 2020-12-04 23:08:49 +08:00
1 parent 26da2b2c9e
commit be626df689
1 file changed
+1 -1
+1 -1
View File
@@ -124,7 +124,7 @@ func (c *Error) MsgType() MessageType {
// This is part of the lnwire.Message interface.
func (c *Error) MaxPayloadLength(uint32) uint32 {
// 32 + 2 + 65501
return 65535
return MaxMessagePayload
}
// isASCII is a helper method that checks whether all bytes in `data` would be