lnwire: remove unused MaxMessagePayload const

MaxMessagePayload and MaxSliceLength are duplicate variables. This
commit deletes MaxMessagePayload and keeps MaxSliceLength.
This commit is contained in:
yyforyongyu
2021-06-17 10:49:33 +08:00
parent 90db8de6fe
commit 4b12f40a48
3 changed files with 2 additions and 6 deletions

View File

@ -7,7 +7,7 @@ import (
// ReadSize represents the size of the maximum message that can be read off the
// wire by brontide. The buffer is used to hold the ciphertext while the
// brontide state machine decrypts the message.
const ReadSize = lnwire.MaxMessagePayload + 16
const ReadSize = lnwire.MaxSliceLength + 16
// Read is a static byte array sized to the maximum-allowed Lightning message
// size, plus 16 bytes for the MAC.