mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-26 08:55:59 +01:00
peer: use MaxMessagePayload instead of hard coding
This commit is contained in:
parent
26da2b2c9e
commit
be626df689
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue